The leaves, stems, and unripe fruits of tomatoes contain solanine compounds that can be toxic to humans and deer. If the deer ingests a few leaves, it won't damage the animal. But, ingestion of large quantities of solanine can be harmful.