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