fork/rust

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

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
1.1 KiB37 linesraw
1error: expected `,`, found `&`
2  --> $DIR/issue-66706.rs:2:16
3   |
4LL |     [0; [|_: _ &_| ()].len()]
5   |               -^ expected `,`
6   |               |
7   |               help: missing `,`
8
9error: expected identifier, found reserved identifier `_`
10  --> $DIR/issue-66706.rs:8:20
11   |
12LL |     [0; [|f @ &ref _| {} ; 0 ].len() ];
13   |                    ^ expected identifier, found reserved identifier
14
15error: expected `,`, found `&`
16  --> $DIR/issue-66706.rs:13:17
17   |
18LL |     [0; [|&_: _ &_| {}; 0 ].len()]
19   |                -^ expected `,`
20   |                |
21   |                help: missing `,`
22
23error: expected identifier, found reserved identifier `_`
24  --> $DIR/issue-66706.rs:18:26
25   |
26LL |     [0; match [|f @ &ref _| () ] {} ]
27   |                          ^ expected identifier, found reserved identifier
28
29error[E0282]: type annotations needed
30  --> $DIR/issue-66706.rs:2:11
31   |
32LL |     [0; [|_: _ &_| ()].len()]
33   |           ^ cannot infer type
34
35error: aborting due to 5 previous errors
36
37For more information about this error, try `rustc --explain E0282`.