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

6 lines
122 B
Rust
Raw Normal View History

enum foo = uint;
fn main() {
let (foo, _) = (2, 3); //~ ERROR declaration of `foo` shadows an enum that's in scope
}