@@ -7,21 +7,21 @@ LL | [0; [|_: _ &_| ()].len()]
77 | help: missing `,`
88
99error: expected identifier, found reserved identifier `_`
10- --> $DIR/issue-66706.rs:9 :20
10+ --> $DIR/issue-66706.rs:8 :20
1111 |
1212LL | [0; [|f @ &ref _| {} ; 0 ].len() ];
1313 | ^ expected identifier, found reserved identifier
1414
1515error: expected `,`, found `&`
16- --> $DIR/issue-66706.rs:14 :17
16+ --> $DIR/issue-66706.rs:13 :17
1717 |
1818LL | [0; [|&_: _ &_| {}; 0 ].len()]
1919 | -^ expected `,`
2020 | |
2121 | help: missing `,`
2222
2323error: expected identifier, found reserved identifier `_`
24- --> $DIR/issue-66706.rs:20 :26
24+ --> $DIR/issue-66706.rs:18 :26
2525 |
2626LL | [0; match [|f @ &ref _| () ] {} ]
2727 | ^ expected identifier, found reserved identifier
@@ -32,31 +32,6 @@ error[E0282]: type annotations needed
3232LL | [0; [|_: _ &_| ()].len()]
3333 | ^ cannot infer type
3434
35- error[E0308]: mismatched types
36- --> $DIR/issue-66706.rs:2:5
37- |
38- LL | fn a() {
39- | - help: try adding a return type: `-> [i32; _]`
40- LL | [0; [|_: _ &_| ()].len()]
41- | ^^^^^^^^^^^^^^^^^^^^^^^^^ expected `()`, found array `[{integer}; _]`
42-
43- error[E0308]: mismatched types
44- --> $DIR/issue-66706.rs:14:5
45- |
46- LL | fn c() {
47- | - help: try adding a return type: `-> [i32; _]`
48- LL | [0; [|&_: _ &_| {}; 0 ].len()]
49- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `()`, found array `[{integer}; _]`
50-
51- error[E0308]: mismatched types
52- --> $DIR/issue-66706.rs:20:5
53- |
54- LL | fn d() {
55- | - help: try adding a return type: `-> [i32; _]`
56- LL | [0; match [|f @ &ref _| () ] {} ]
57- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `()`, found array `[{integer}; _]`
58-
59- error: aborting due to 8 previous errors
35+ error: aborting due to 5 previous errors
6036
61- Some errors have detailed explanations: E0282, E0308.
62- For more information about an error, try `rustc --explain E0282`.
37+ For more information about this error, try `rustc --explain E0282`.
0 commit comments