fork/rust

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

borsAuto merge of #69854 - pietroalbini:stable-next, r=Centrilb8cedc00407

1.42.0
2.5 KiB72 linesraw
1error[E0415]: identifier `a` is bound more than once in this parameter list
2  --> $DIR/pat-at-same-name-both.rs:9: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:9: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:14: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:16: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:21: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:21: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:24: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:26: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:29: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:29:26
57   |
58LL |     let a @ (Ok(a) | Err(a)) = Ok(());
59   |                          ^ used in a pattern more than once
60
61warning: the feature `or_patterns` is incomplete and may cause the compiler to crash
62  --> $DIR/pat-at-same-name-both.rs:5:12
63   |
64LL | #![feature(or_patterns)]
65   |            ^^^^^^^^^^^
66   |
67   = note: `#[warn(incomplete_features)]` on by default
68
69error: aborting due to 10 previous errors
70
71Some errors have detailed explanations: E0415, E0416.
72For more information about an error, try `rustc --explain E0415`.