2020-03-26 16:10:58 +00:00
|
|
|
error: expected `,`, found `&`
|
|
|
|
--> $DIR/issue-66706.rs:2:16
|
|
|
|
|
|
|
|
|
LL | [0; [|_: _ &_| ()].len()]
|
|
|
|
| -^ expected `,`
|
|
|
|
| |
|
|
|
|
| help: missing `,`
|
|
|
|
|
|
|
|
error: expected identifier, found reserved identifier `_`
|
2022-07-04 16:25:37 +00:00
|
|
|
--> $DIR/issue-66706.rs:8:20
|
2020-03-26 16:10:58 +00:00
|
|
|
|
|
|
|
|
LL | [0; [|f @ &ref _| {} ; 0 ].len() ];
|
|
|
|
| ^ expected identifier, found reserved identifier
|
|
|
|
|
2020-03-27 08:56:02 +00:00
|
|
|
error: expected `,`, found `&`
|
2022-07-04 16:25:37 +00:00
|
|
|
--> $DIR/issue-66706.rs:13:17
|
2020-03-27 08:56:02 +00:00
|
|
|
|
|
|
|
|
LL | [0; [|&_: _ &_| {}; 0 ].len()]
|
|
|
|
| -^ expected `,`
|
|
|
|
| |
|
|
|
|
| help: missing `,`
|
|
|
|
|
|
|
|
error: expected identifier, found reserved identifier `_`
|
2024-04-06 02:52:22 +00:00
|
|
|
--> $DIR/issue-66706.rs:19:26
|
2020-03-27 08:56:02 +00:00
|
|
|
|
|
|
|
|
LL | [0; match [|f @ &ref _| () ] {} ]
|
2023-11-06 21:00:13 +00:00
|
|
|
| ----- ^ expected identifier, found reserved identifier
|
|
|
|
| |
|
|
|
|
| while parsing this `match` expression
|
2020-03-27 08:56:02 +00:00
|
|
|
|
2020-03-26 16:10:58 +00:00
|
|
|
error[E0282]: type annotations needed
|
|
|
|
--> $DIR/issue-66706.rs:2:11
|
|
|
|
|
|
|
|
|
LL | [0; [|_: _ &_| ()].len()]
|
2022-02-14 12:25:26 +00:00
|
|
|
| ^ cannot infer type
|
2020-03-26 16:10:58 +00:00
|
|
|
|
2024-04-06 02:52:22 +00:00
|
|
|
error[E0282]: type annotations needed
|
|
|
|
--> $DIR/issue-66706.rs:13:11
|
|
|
|
|
|
|
|
|
LL | [0; [|&_: _ &_| {}; 0 ].len()]
|
|
|
|
| ^^^^^ cannot infer type
|
|
|
|
|
|
|
|
error: aborting due to 6 previous errors
|
2020-03-26 16:10:58 +00:00
|
|
|
|
2022-07-04 16:25:37 +00:00
|
|
|
For more information about this error, try `rustc --explain E0282`.
|