Its the chief advantage of stainless over regular mild steel. In Thailand there is world class rock climbing near the sea. Rock climbers instal steel expansion bolts into the rock for climbing anchors. Due to the salty sea air and limestone they were rusting out and failing so a major effort to replace them all with stainless steel bolts and glue in techniques happened. They dont rust out. Stainless is much more difficult to weld though....