]> git.lizzy.rs Git - rust.git/blob - src/test/ui/error-codes/E0025.rs
Suggest `if let`/`let_else` for refutable pat in `let`
[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 }