fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error: expected identifier, found `1` 2 --> $DIR/issue-79099.rs:3:65 3 | 4LL | let f: impl core::future::Future<Output = u8> = async { 1 }; 5 | ----- ^ expected identifier 6 | | 7 | `async` blocks are only allowed in Rust 2018 or later 8 | 9 = help: pass `--edition 2021` to `rustc` 10 = note: for more on editions, read https://doc.rust-lang.org/edition-guide 11 12error[E0562]: `impl Trait` only allowed in function and inherent method argument and return types, not in variable bindings 13 --> $DIR/issue-79099.rs:3:16 14 | 15LL | let f: impl core::future::Future<Output = u8> = async { 1 }; 16 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 17 18error: aborting due to 2 previous errors 19 20For more information about this error, try `rustc --explain E0562`.