]> git.proxmox.com Git - rustc.git/blame - src/test/ui/shadowed/shadowing-in-the-same-pattern.rs
New upstream version 1.66.0+dfsg1
[rustc.git] / src / test / ui / shadowed / shadowing-in-the-same-pattern.rs
CommitLineData
1a4d82fc 1// Test for issue #14581.
970d7e83 2
1a4d82fc 3fn f((a, a): (isize, isize)) {} //~ ERROR identifier `a` is bound more than once
223e47cc
LB
4
5fn main() {
1a4d82fc 6 let (a, a) = (1, 1); //~ ERROR identifier `a` is bound more than once
223e47cc 7}