Magnesium doesn't technically rust. Rust is only the corrosion of iron or steel
However, magnesium does corrode very quickly. Unlike a the reddish brown rusted surface of iron corrosion, magnesium corrosion is actually more of dull gray film.
Using a surface coating can slow magnesium corrosion