fork/rust

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

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

1.43.0
2.3 KiB64 linesraw
1error[E0415]: identifier `a` is bound more than once in this parameter list
2  --> $DIR/pat-at-same-name-both.rs:8:14
3   |
4LL |     fn f(a @ a @ a: ()) {}
5   |              ^ used as parameter more than once
6
7error[E0415]: identifier `a` is bound more than once in this parameter list
8  --> $DIR/pat-at-same-name-both.rs:8:18
9   |
10LL |     fn f(a @ a @ a: ()) {}
11   |                  ^ used as parameter more than once
12
13error[E0416]: identifier `a` is bound more than once in the same pattern
14  --> $DIR/pat-at-same-name-both.rs:13:20
15   |
16LL |         Ok(a @ b @ a)
17   |                    ^ used in a pattern more than once
18
19error[E0416]: identifier `a` is bound more than once in the same pattern
20  --> $DIR/pat-at-same-name-both.rs:15:23
21   |
22LL |         | Err(a @ b @ a)
23   |                       ^ used in a pattern more than once
24
25error[E0416]: identifier `a` is bound more than once in the same pattern
26  --> $DIR/pat-at-same-name-both.rs:20:13
27   |
28LL |     let a @ a @ a = ();
29   |             ^ used in a pattern more than once
30
31error[E0416]: identifier `a` is bound more than once in the same pattern
32  --> $DIR/pat-at-same-name-both.rs:20:17
33   |
34LL |     let a @ a @ a = ();
35   |                 ^ used in a pattern more than once
36
37error[E0416]: identifier `a` is bound more than once in the same pattern
38  --> $DIR/pat-at-same-name-both.rs:23:21
39   |
40LL |     let ref a @ ref a = ();
41   |                     ^ used in a pattern more than once
42
43error[E0416]: identifier `a` is bound more than once in the same pattern
44  --> $DIR/pat-at-same-name-both.rs:25:29
45   |
46LL |     let ref mut a @ ref mut a = ();
47   |                             ^ used in a pattern more than once
48
49error[E0416]: identifier `a` is bound more than once in the same pattern
50  --> $DIR/pat-at-same-name-both.rs:28:17
51   |
52LL |     let a @ (Ok(a) | Err(a)) = Ok(());
53   |                 ^ used in a pattern more than once
54
55error[E0416]: identifier `a` is bound more than once in the same pattern
56  --> $DIR/pat-at-same-name-both.rs:28:26
57   |
58LL |     let a @ (Ok(a) | Err(a)) = Ok(());
59   |                          ^ used in a pattern more than once
60
61error: aborting due to 10 previous errors
62
63Some errors have detailed explanations: E0415, E0416.
64For more information about an error, try `rustc --explain E0415`.