rust/tests/ui/impl-trait/issues/issue-79099.rs
2023-10-04 19:51:43 +00:00

11 lines
261 B
Rust

struct Bug {
V1: [(); {
let f: impl core::future::Future<Output = u8> = async { 1 };
//~^ `impl Trait` only allowed in function and inherent method argument and return types
//~| expected identifier
1
}],
}
fn main() {}