blob: 8426298620ff1ff3297cc009224876bb6822ceb1 [file] [log] [blame] [edit]
//@revisions: edition2015 edition2024
//@[edition2015] edition:2015
//@[edition2024] edition:2024
struct Bug {
V1: [(); {
let f: impl core::future::Future<Output = u8> = async { 1 };
//~^ ERROR `impl Trait` is not allowed in the type of variable bindings
//[edition2015]~| ERROR expected identifier
1
}],
}
fn main() {}