about summary refs log tree commit diff
path: root/tests/ui/impl-trait/issues/issue-79099.rs
blob: 8426298620ff1ff3297cc009224876bb6822ceb1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
//@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() {}