That's a very smart concern to have! Living near the ocean is wonderful, but the salty, humid air is absolutely brutal on metals, causing what's called "salt spray corrosion." It makes regular steel trash cans rust incredibly fast. Don't worry, though, you have some excellent rust-proof options.
The absolute top choice for defeating ocean air is a stainless steel trash can. Look for grade 304 or, even better for harsh marine environments, grade 316 ("marine-grade stainless"). It's highly resistant to rust, incredibly durable against knocks, and has a sleek, permanent look. The main downside is the higher cost and it can get quite heavy.
A fantastic and often more affordable alternative is a heavy-duty polymer or plastic bin made from marine-grade resins. These are specifically engineered to resist UV rays from the sun and won't corrode at all. They are lightweight and often come in colors that won't chip. Ensure it's labeled for "coastal" or "marine" use, as not all plastics can handle constant UV exposure.
Powder-coated galvanized steel can be a middle-ground option. The galvanization provides a zinc layer, and the powder coat adds another barrier. It's more resistant than plain steel, but over many years, scratches can expose metal to moisture, leading to rust spots that need touch-ups.
Materials to Avoid: Steer clear of plain steel or thin enamel-coated cans. They will rust quickly. Also, avoid standard aluminum; while it doesn't rust like steel, it can oxidize and pit in salty air, looking chalky and degraded.
Pro-Tip: No matter what material you choose, ensure it has drainage holes at the bottom to let rainwater out. Trapped water accelerates corrosion and causes odors. Placing your bin on a slightly elevated surface, like a small patio stone, also improves airflow and reduces moisture contact.
In short, for a worry-free, long-term solution near the ocean, invest in a stainless steel or a coastal-rated polymer trash can. It might cost more upfront, but it will save you from replacing a rusty can every couple of years. Enjoy the sea breeze without the rust worries