rust/src/test/compile-fail/pat-shadow-in-nested-binding.rs

6 lines
98 B
Rust

enum foo = uint;
fn main() {
let (foo, _) = (2, 3); //~ ERROR declaration of `foo` shadows
}