CAUTION: NEVER eat or even taste foods from a can which has rust, leaks, cracks, bulges or has any foul odor. If the contents "spurt" out when the can is opened, dispose of it. Don't use food from badly-dented cans (small dents are not a problem). These could be signs of botulism and it can be deadly.
NOTE: Soft drinks in glass or plastic bottles should not be stored in sunlight. Sunlight can cause chemical reactions with the soft drink contents. While probably not life threatening it's best to avoid the problem by storing bottled soft drinks in a dark location.