1 error[E0412]: cannot find type `n` in this scope
2 --> $DIR/issue-90871.rs:4:22
4 LL | type_ascribe!(2, n([u8; || 1]))
5 | ^ help: a trait with a similar name exists: `Fn`
6 --> $SRC_DIR/core/src/ops/function.rs:LL:COL
8 = note: similarly named trait `Fn` defined here
10 error[E0308]: mismatched types
11 --> $DIR/issue-90871.rs:4:29
13 LL | type_ascribe!(2, n([u8; || 1]))
14 | ^^^^ expected `usize`, found closure
16 = note: expected type `usize`
17 found closure `[closure@$DIR/issue-90871.rs:4:29: 4:31]`
18 help: use parentheses to call this closure
20 LL | type_ascribe!(2, n([u8; (|| 1)()]))
23 error: aborting due to 2 previous errors
25 Some errors have detailed explanations: E0308, E0412.
26 For more information about an error, try `rustc --explain E0308`.