mirror of
https://github.com/rust-lang/rust
synced 2024-11-05 20:45:15 +00:00
37 lines
1.1 KiB
Text
37 lines
1.1 KiB
Text
error: expected `,`, found `&`
|
|
--> $DIR/issue-66706.rs:2:16
|
|
|
|
|
LL | [0; [|_: _ &_| ()].len()]
|
|
| -^ expected `,`
|
|
| |
|
|
| help: missing `,`
|
|
|
|
error: expected identifier, found reserved identifier `_`
|
|
--> $DIR/issue-66706.rs:8:20
|
|
|
|
|
LL | [0; [|f @ &ref _| {} ; 0 ].len() ];
|
|
| ^ expected identifier, found reserved identifier
|
|
|
|
error: expected `,`, found `&`
|
|
--> $DIR/issue-66706.rs:13:17
|
|
|
|
|
LL | [0; [|&_: _ &_| {}; 0 ].len()]
|
|
| -^ expected `,`
|
|
| |
|
|
| help: missing `,`
|
|
|
|
error: expected identifier, found reserved identifier `_`
|
|
--> $DIR/issue-66706.rs:18:26
|
|
|
|
|
LL | [0; match [|f @ &ref _| () ] {} ]
|
|
| ^ expected identifier, found reserved identifier
|
|
|
|
error[E0282]: type annotations needed
|
|
--> $DIR/issue-66706.rs:2:11
|
|
|
|
|
LL | [0; [|_: _ &_| ()].len()]
|
|
| ^ cannot infer type
|
|
|
|
error: aborting due to 5 previous errors
|
|
|
|
For more information about this error, try `rustc --explain E0282`.
|