Fossilized teeth of an extinct species of herbivorous great ape have on them phytoliths, which are microscopic petrified remains of plants. Since only phytoliths from certain species of plants are found on the teeth, the apes' diet must have consisted only of those plants.
The argument assumes that plants of every type eaten by the apes left phytoliths on their teeth.