]> git.lizzy.rs Git - rust.git/blob - src/test/ui/error-codes/E0025.rs
Merge commit 'd3a2366ee877075c59b38bd8ced55f224fc7ef51' into sync_cg_clif-2022-07-26
[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 }