]> git.lizzy.rs Git - rust.git/blob - src/test/ui/error-codes/E0025.rs
Merge commit 'a98e7ab8b94485be6bd03e0c6b8682ecab5b52e6' into clippyup
[rust.git] / src / test / ui / error-codes / E0025.rs
1 struct Foo {
2     a: u8,
3     b: u8,
4 }
5
6 fn main() {
7     let x = Foo { a:1, b:2 };
8     let Foo { a: x, a: y, b: 0 } = x;
9     //~^ ERROR field `a` bound multiple times in the pattern
10 }