]> git.lizzy.rs Git - rust.git/blob - tests/ui/issues/issue-9725.rs
Rollup merge of #106896 - Ezrashaw:str-cast-bool-emptyness, r=compiler-errors
[rust.git] / tests / 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 }