A little rusty metal never hurt anyone!
I wonder what your friend thinks could be dangerous about it?
I would never give a second thought to using metal of any condition in a vegetable garden. If it was an old arsenic container, or plating/chemical tank, sure, I could see reason to worry. But not just because its metal.