What would hypothetically happen if you gave an Ankylosaurus a bag of gummy worms?

Or any dinosaur, I'm using Ankylosaurus as an example since they're my favourite (I'm not sure if these kind of discussions are allowed or not but looking at the rules I'm assuming they are? Please correct me if I'm wrong tho)