fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #66089 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum4560ea788cb

1.39.0
633 B18 linesraw
1error[E0416]: identifier `foo` is bound more than once in the same pattern
2  --> $DIR/issue-9725.rs:4:18
3   |
4LL |     let A { foo, foo } = A { foo: 3 };
5   |                  ^^^ used in a pattern more than once
6
7error[E0025]: field `foo` bound multiple times in the pattern
8  --> $DIR/issue-9725.rs:4:18
9   |
10LL |     let A { foo, foo } = A { foo: 3 };
11   |             ---  ^^^ multiple uses of `foo` in pattern
12   |             |
13   |             first use of `foo`
14
15error: aborting due to 2 previous errors
16
17Some errors have detailed explanations: E0025, E0416.
18For more information about an error, try `rustc --explain E0025`.