]> git.lizzy.rs Git - rust.git/blob - src/test/ui/shadowed/shadowing-in-the-same-pattern.rs
Sync portable-simd to rust-lang/portable-simd@72df4c45056a8bc0d1b3f06fdc828722177f0763
[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 }