]> git.lizzy.rs Git - rust.git/blob - src/test/ui/shadowed/shadowing-in-the-same-pattern.rs
Merge commit '5ff7b632a95bac6955611d85040859128902c580' into sync-rustfmt-subtree
[rust.git] / src / test / ui / shadowed / shadowing-in-the-same-pattern.rs
1 // Test for issue #14581.
2
3 fn f((a, a): (isize, isize)) {} //~ ERROR identifier `a` is bound more than once
4
5 fn main() {
6     let (a, a) = (1, 1);    //~ ERROR identifier `a` is bound more than once
7 }