Jimson weed does both- very toxic
That’s not the one I meant, but it was on the list of ones I wasn’t going to mention. The flowers smell lovely, another common name is “thornapple” because of the nasty hooks on the stems (IOW, if weeding, use a tool, or heavy gloves). They spread really nicely by rhizome. The domesticated version is marketed as Datura (the scientific name) and tends to be pricey around here, but are tall, yellow flowered, smell even better (stronger scent)... the wild kind is the Zombie Cucumber discussed in “Serpent and the Rainbow”. The fruit (long growing season, I’ve never seen one in the wild) resembles its relative the eggplant, kind of a dirty trick... lots of useful commonly grown stuff in that family — tomato, potato, pepper, tomatillo, nantucket ground cherry, other husk tomato varieties, petunias, nicotiana, chinese lanterns, jerusalem cherry, and the European Love Apple (the ELA looks so much like a tomato, yet is poisonous, and led many to believe that the tomato was also). Other flowering plants related include the poinsettia. Oleander (another poisonous one) is related, as is solanum nigrum (deadly nightshade).