]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-9725.rs
Auto merge of #87150 - rusticstuff:simplify_wrapping_neg, r=m-ou-se
[rust.git] / src / test / ui / issues / issue-9725.rs
1 struct A { foo: isize }
2
3 fn main() {
4     let A { foo, foo } = A { foo: 3 };
5     //~^ ERROR: identifier `foo` is bound more than once in the same pattern
6     //~^^ ERROR: field `foo` bound multiple times
7 }