summaryrefslogtreecommitdiffstats
path: root/tests/ui/impl-trait/issues/issue-79099.rs
blob: 22c66491ce988c5d1adb03fe28907b7cef1387fb (plain)
1
2
3
4
5
6
7
8
9
10
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() {}