]> git.lizzy.rs Git - rust.git/blob - tests/ui/shadowed/shadowing-in-the-same-pattern.rs
Rollup merge of #106709 - khuey:disable_split_dwarf_inlining_by_default, r=davidtwco
[rust.git] / tests / 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 }