]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-66706.stderr
Auto merge of #100251 - compiler-errors:tuple-trait-2, r=jackh726
[rust.git] / src / test / ui / issues / issue-66706.stderr
1 error: expected `,`, found `&`
2   --> $DIR/issue-66706.rs:2:16
3    |
4 LL |     [0; [|_: _ &_| ()].len()]
5    |               -^ expected `,`
6    |               |
7    |               help: missing `,`
8
9 error: expected identifier, found reserved identifier `_`
10   --> $DIR/issue-66706.rs:8:20
11    |
12 LL |     [0; [|f @ &ref _| {} ; 0 ].len() ];
13    |                    ^ expected identifier, found reserved identifier
14
15 error: expected `,`, found `&`
16   --> $DIR/issue-66706.rs:13:17
17    |
18 LL |     [0; [|&_: _ &_| {}; 0 ].len()]
19    |                -^ expected `,`
20    |                |
21    |                help: missing `,`
22
23 error: expected identifier, found reserved identifier `_`
24   --> $DIR/issue-66706.rs:18:26
25    |
26 LL |     [0; match [|f @ &ref _| () ] {} ]
27    |                          ^ expected identifier, found reserved identifier
28
29 error[E0282]: type annotations needed
30   --> $DIR/issue-66706.rs:2:11
31    |
32 LL |     [0; [|_: _ &_| ()].len()]
33    |           ^ cannot infer type
34
35 error: aborting due to 5 previous errors
36
37 For more information about this error, try `rustc --explain E0282`.