rust/tests/ui/impl-trait/issues/issue-79099.rs
2024-01-07 18:00:03 +00:00

11 lines
238 B
Rust

struct Bug {
V1: [(); {
let f: impl core::future::Future<Output = u8> = async { 1 };
//~^ `impl Trait` is not allowed in the type of variable bindings
//~| expected identifier
1
}],
}
fn main() {}