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