This is a feature. The Rust compiler uses name shadowing a fair amount. It's imaginable to have a lint pass about it that's off by default, though I don't think we have a lint pass like that now. (In Haskell, for example, name shadowing is allowed but GHC has an optional warning flag that will warn you about it.)
Cheers, Tim -- Tim Chevalier * http://catamorphism.org/ * Often in error, never in doubt "Too much to carry, too much to let go Time goes fast, learning goes slow." -- Bruce Cockburn _______________________________________________ Rust-dev mailing list [email protected] https://mail.mozilla.org/listinfo/rust-dev
