fork/rust

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

borsAuto merge of #71365 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum4fb7144ed15

1.43.0
738 B21 linesraw
1error[E0416]: identifier `x` is bound more than once in the same pattern
2  --> $DIR/issue-3038.rs:12:15
3   |
4LL |       F::G(x, x) => { println!("{}", x + x); }
5   |               ^ used in a pattern more than once
6
7error[E0416]: identifier `x` is bound more than once in the same pattern
8  --> $DIR/issue-3038.rs:17:32
9   |
10LL |       H::I(J::L(x, _), K::M(_, x))
11   |                                ^ used in a pattern more than once
12
13error[E0416]: identifier `x` is bound more than once in the same pattern
14  --> $DIR/issue-3038.rs:23:13
15   |
16LL |         (x, x) => { x }
17   |             ^ used in a pattern more than once
18
19error: aborting due to 3 previous errors
20
21For more information about this error, try `rustc --explain E0416`.