1 error[E0412]: cannot find type `n` in this scope
2 --> $DIR/issue-90871.rs:2:8
5 | ^ expecting a type here because of type ascription
7 error[E0308]: mismatched types
8 --> $DIR/issue-90871.rs:2:15
11 | ^^^^ expected `usize`, found closure
13 = note: expected type `usize`
14 found closure `[closure@$DIR/issue-90871.rs:2:15: 2:17]`
15 help: use parentheses to call this closure
17 LL | 2: n([u8; (|| 1)()])
20 error: aborting due to 2 previous errors
22 Some errors have detailed explanations: E0308, E0412.
23 For more information about an error, try `rustc --explain E0308`.