1 error: expected identifier, found `1`
2 --> $DIR/issue-79099.rs:3:65
4 LL | let f: impl core::future::Future<Output = u8> = async { 1 };
5 | ----- ^ expected identifier
7 | `async` blocks are only allowed in Rust 2018 or later
9 = help: set `edition = "2018"` in `Cargo.toml`
10 = note: for more on editions, read https://doc.rust-lang.org/edition-guide
12 error[E0562]: `impl Trait` not allowed outside of function and method return types
13 --> $DIR/issue-79099.rs:3:16
15 LL | let f: impl core::future::Future<Output = u8> = async { 1 };
16 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
18 error: aborting due to 2 previous errors
20 For more information about this error, try `rustc --explain E0562`.