>>867274S. nigrum ripe fruits aren't toxic at all, only the unripe ones have solanine, but so do unripe green tomatoes. Same for leaves, but that holds true for those of tomato as well, yet nobody ever warns against tomatoes
It's pretty much the "pre-Columbian European tomato", just with smaller fruit, but then again the wild form of tomato has tiny fruit too, for some reason no one ever bothered to cultivate S. nigrum to have bigger fruit like it was done with the tomato. And judging from their black colour and also taste (I'm now eating lots of S. nigrum fruits when gardening as a snack upon encountering the plants and never got ill from them - it's a really unique taste I'd describe as some sort of mix of tomato, vine grape and blackberry, definitely needs some acquiring but once you get to like it it's super tasty), they're likely full of healthy antioxidants such as polyphenols
And those stupid enough to confuse S. nigrum with Atropa belladonna (a truly toxic fruit) have no place in any garden whatsoever and need to go back to school