fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0412]: cannot find type `n` in this scope 2 --> $DIR/issue-90871.rs:4:22 3 | 4LL | 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 7 | 8 = note: similarly named trait `Fn` defined here 9 10error[E0308]: mismatched types 11 --> $DIR/issue-90871.rs:4:29 12 | 13LL | type_ascribe!(2, n([u8; || 1])) 14 | ^^^^ expected `usize`, found closure 15 | 16 = note: expected type `usize` 17 found closure `{closure@$DIR/issue-90871.rs:4:29: 4:31}` 18help: use parentheses to call this closure 19 | 20LL | type_ascribe!(2, n([u8; (|| 1)()])) 21 | + +++ 22 23error: aborting due to 2 previous errors 24 25Some errors have detailed explanations: E0308, E0412. 26For more information about an error, try `rustc --explain E0308`.