rust/tests/ui/issues/issue-66706.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

46 lines
1.3 KiB
Plaintext
Raw Normal View History

error: expected one of `,` or `|`, found `&`
2020-03-26 16:10:58 +00:00
--> $DIR/issue-66706.rs:2:16
|
LL | [0; [|_: _ &_| ()].len()]
| -^ expected one of `,` or `|`
2020-03-26 16:10:58 +00:00
| |
| 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
error: expected one of `,` or `|`, found `&`
2022-07-04 16:25:37 +00:00
--> $DIR/issue-66706.rs:13:17
|
LL | [0; [|&_: _ &_| {}; 0 ].len()]
| -^ expected one of `,` or `|`
| |
| help: missing `,`
error: expected identifier, found reserved identifier `_`
2024-04-06 02:52:22 +00:00
--> $DIR/issue-66706.rs:19:26
|
LL | [0; match [|f @ &ref _| () ] {} ]
| ----- ^ expected identifier, found reserved identifier
| |
| while parsing this `match` expression
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`.