about summary refs log tree commit diff
path: root/tests/ui/issues/issue-66706.stderr
blob: cfe85764000250c636c8e91ad603a9b9e86154f9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
error: expected one of `,` or `|`, found `&`
  --> $DIR/issue-66706.rs:2:16
   |
LL |     [0; [|_: _ &_| ()].len()]
   |               -^ expected one of `,` or `|`
   |               |
   |               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 one of `,` or `|`, found `&`
  --> $DIR/issue-66706.rs:13:17
   |
LL |     [0; [|&_: _ &_| {}; 0 ].len()]
   |                -^ expected one of `,` or `|`
   |                |
   |                help: missing `,`

error: expected identifier, found reserved identifier `_`
  --> $DIR/issue-66706.rs:19:26
   |
LL |     [0; match [|f @ &ref _| () ] {} ]
   |         -----            ^ expected identifier, found reserved identifier
   |         |
   |         while parsing this `match` expression

error[E0282]: type annotations needed
  --> $DIR/issue-66706.rs:2:14
   |
LL |     [0; [|_: _ &_| ()].len()]
   |              ^ cannot infer type

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

For more information about this error, try `rustc --explain E0282`.