]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-9725.stderr
Rollup merge of #91804 - woppopo:const_clone, r=oli-obk
[rust.git] / src / test / ui / issues / issue-9725.stderr
1 error[E0416]: identifier `foo` is bound more than once in the same pattern
2   --> $DIR/issue-9725.rs:4:18
3    |
4 LL |     let A { foo, foo } = A { foo: 3 };
5    |                  ^^^ used in a pattern more than once
6
7 error[E0025]: field `foo` bound multiple times in the pattern
8   --> $DIR/issue-9725.rs:4:18
9    |
10 LL |     let A { foo, foo } = A { foo: 3 };
11    |             ---  ^^^ multiple uses of `foo` in pattern
12    |             |
13    |             first use of `foo`
14
15 error: aborting due to 2 previous errors
16
17 Some errors have detailed explanations: E0025, E0416.
18 For more information about an error, try `rustc --explain E0025`.