2018-07-15 21:11:54 +00:00
|
|
|
error[E0416]: identifier `foo` is bound more than once in the same pattern
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/issue-9725.rs:4:18
|
2018-07-15 21:11:54 +00:00
|
|
|
|
|
|
|
|
LL | let A { foo, foo } = A { foo: 3 };
|
|
|
|
| ^^^ used in a pattern more than once
|
|
|
|
|
|
|
|
error[E0025]: field `foo` bound multiple times in the pattern
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/issue-9725.rs:4:18
|
2018-07-15 21:11:54 +00:00
|
|
|
|
|
|
|
|
LL | let A { foo, foo } = A { foo: 3 };
|
|
|
|
| --- ^^^ multiple uses of `foo` in pattern
|
|
|
|
| |
|
|
|
|
| first use of `foo`
|
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
|
2019-04-17 17:26:38 +00:00
|
|
|
Some errors have detailed explanations: E0025, E0416.
|
2018-07-15 21:11:54 +00:00
|
|
|
For more information about an error, try `rustc --explain E0025`.
|