]> git.proxmox.com Git - rustc.git/blame - src/test/ui/pattern/pat-shadow-in-nested-binding.rs
New upstream version 1.66.0+dfsg1
[rustc.git] / src / test / ui / pattern / pat-shadow-in-nested-binding.rs
CommitLineData
0731742a 1#[allow(non_camel_case_types)]
1a4d82fc 2struct foo(usize);
223e47cc
LB
3
4fn main() {
c30ab7b3 5 let (foo, _) = (2, 3); //~ ERROR let bindings cannot shadow tuple structs
223e47cc 6}