error[E0308]: mismatched types | |
--> $DIR/issue-50688.rs:12:9 | |
| | |
LL | [1; || {}]; //~ ERROR mismatched types | |
| ^^^^^ expected usize, found closure | |
| | |
= note: expected type `usize` | |
found type `[closure@$DIR/issue-50688.rs:12:9: 12:14]` | |
error: aborting due to previous error | |
For more information about this error, try `rustc --explain E0308`. |