summary refs log tree commit diff
path: root/src/test/compile-fail/pat-shadow-in-nested-binding.rs
blob: c4ba5131879110366d834e5c268de29f98a88f8c (plain)
1
2
3
4
5
enum foo = uint;

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