That's an excellent question! Direct sunlight can be surprisingly tough on outdoor items. From my experience, how well a trash can holds up really depends on its material and quality.
High-quality plastic bins, especially those labeled as UV-resistant or HDPE, perform very well. They contain stabilizers that prevent the plastic from becoming brittle and cracking. You might notice some fading over several years, but the structural integrity usually remains solid. Metal cans, particularly powder-coated or stainless steel, are also champions in the sun, though dark colors can get very hot to the touch.
The weak points are often the lid and any plastic mechanisms. Cheaper bins might become faded and brittle within a single season. To maximize lifespan, I recommend looking for cans specifically marketed for all-weather or coastal use. Placing them in a slightly shaded spot if possible can also add years to their life. Overall, a good-quality, UV-protected trash can should give you 5-10 years of reliable service even in full sun.