summaryrefslogtreecommitdiffstats
path: root/tests/ui/pattern/pat-shadow-in-nested-binding.rs
blob: 7badbb6b95c50298718b956781866ec91bc6c383 (plain)
1
2
3
4
5
6
#[allow(non_camel_case_types)]
struct foo(usize);

fn main() {
    let (foo, _) = (2, 3); //~ ERROR let bindings cannot shadow tuple structs
}