]> git.lizzy.rs Git - rust.git/blob - src/test/ui/shadowed/shadowing-in-the-same-pattern.rs
Auto merge of #89219 - nickkuk:str_split_once_get_unchecked, r=Mark-Simulacrum
[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 }