]> git.lizzy.rs Git - rust.git/blob - src/test/ui/shadowed/shadowing-in-the-same-pattern.rs
Add 'src/tools/miri/' from commit '75dd959a3a40eb5b4574f8d2e23aa6efbeb33573'
[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 }