2019-12-15 03:50:55 +01:00
|
|
|
error[E0415]: identifier `a` is bound more than once in this parameter list
|
2020-11-21 16:05:17 -06:00
|
|
|
--> $DIR/pat-at-same-name-both.rs:7:14
|
2019-12-15 03:50:55 +01:00
|
|
|
|
|
|
|
|
|
LL | fn f(a @ a @ a: ()) {}
|
|
|
|
|
| ^ used as parameter more than once
|
|
|
|
|
|
|
|
|
|
error[E0415]: identifier `a` is bound more than once in this parameter list
|
2020-11-21 16:05:17 -06:00
|
|
|
--> $DIR/pat-at-same-name-both.rs:7:18
|
2019-12-15 03:50:55 +01:00
|
|
|
|
|
|
|
|
|
LL | fn f(a @ a @ a: ()) {}
|
|
|
|
|
| ^ used as parameter more than once
|
|
|
|
|
|
|
|
|
|
error[E0416]: identifier `a` is bound more than once in the same pattern
|
2020-11-21 16:05:17 -06:00
|
|
|
--> $DIR/pat-at-same-name-both.rs:12:20
|
2019-12-15 03:50:55 +01:00
|
|
|
|
|
|
|
|
|
LL | Ok(a @ b @ a)
|
|
|
|
|
| ^ used in a pattern more than once
|
|
|
|
|
|
|
|
|
|
error[E0416]: identifier `a` is bound more than once in the same pattern
|
2020-11-21 16:05:17 -06:00
|
|
|
--> $DIR/pat-at-same-name-both.rs:14:23
|
2019-12-15 03:50:55 +01:00
|
|
|
|
|
|
|
|
|
LL | | Err(a @ b @ a)
|
|
|
|
|
| ^ used in a pattern more than once
|
|
|
|
|
|
2019-11-11 11:39:52 +01:00
|
|
|
error[E0416]: identifier `a` is bound more than once in the same pattern
|
2020-11-21 16:05:17 -06:00
|
|
|
--> $DIR/pat-at-same-name-both.rs:19:13
|
2019-11-11 11:39:52 +01:00
|
|
|
|
|
|
|
|
|
LL | let a @ a @ a = ();
|
|
|
|
|
| ^ used in a pattern more than once
|
|
|
|
|
|
|
|
|
|
error[E0416]: identifier `a` is bound more than once in the same pattern
|
2020-11-21 16:05:17 -06:00
|
|
|
--> $DIR/pat-at-same-name-both.rs:19:17
|
2019-11-11 11:39:52 +01:00
|
|
|
|
|
|
|
|
|
LL | let a @ a @ a = ();
|
|
|
|
|
| ^ used in a pattern more than once
|
|
|
|
|
|
|
|
|
|
error[E0416]: identifier `a` is bound more than once in the same pattern
|
2020-11-21 16:05:17 -06:00
|
|
|
--> $DIR/pat-at-same-name-both.rs:22:21
|
2019-11-11 11:39:52 +01:00
|
|
|
|
|
|
|
|
|
LL | let ref a @ ref a = ();
|
|
|
|
|
| ^ used in a pattern more than once
|
|
|
|
|
|
|
|
|
|
error[E0416]: identifier `a` is bound more than once in the same pattern
|
2020-11-21 16:05:17 -06:00
|
|
|
--> $DIR/pat-at-same-name-both.rs:24:29
|
2019-11-11 11:39:52 +01:00
|
|
|
|
|
|
|
|
|
LL | let ref mut a @ ref mut a = ();
|
|
|
|
|
| ^ used in a pattern more than once
|
|
|
|
|
|
|
|
|
|
error[E0416]: identifier `a` is bound more than once in the same pattern
|
2020-11-21 16:05:17 -06:00
|
|
|
--> $DIR/pat-at-same-name-both.rs:27:17
|
2019-11-11 11:39:52 +01:00
|
|
|
|
|
|
|
|
|
LL | let a @ (Ok(a) | Err(a)) = Ok(());
|
|
|
|
|
| ^ used in a pattern more than once
|
|
|
|
|
|
|
|
|
|
error[E0416]: identifier `a` is bound more than once in the same pattern
|
2020-11-21 16:05:17 -06:00
|
|
|
--> $DIR/pat-at-same-name-both.rs:27:26
|
2019-11-11 11:39:52 +01:00
|
|
|
|
|
|
|
|
|
LL | let a @ (Ok(a) | Err(a)) = Ok(());
|
|
|
|
|
| ^ used in a pattern more than once
|
|
|
|
|
|
2019-12-15 03:50:55 +01:00
|
|
|
error: aborting due to 10 previous errors
|
2019-11-11 11:39:52 +01:00
|
|
|
|
2019-12-15 03:50:55 +01:00
|
|
|
Some errors have detailed explanations: E0415, E0416.
|
|
|
|
|
For more information about an error, try `rustc --explain E0415`.
|