summary refs log tree commit diff
path: root/src/test/ui/impl-trait/issues/issue-78721.rs
blob: f7dbef9e3ff02ad797b0f86e7d64281c01622ffb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// edition:2018

#![feature(impl_trait_in_bindings)]
//~^ WARN the feature `impl_trait_in_bindings` is incomplete

struct Bug {
    V1: [(); {
        let f: impl core::future::Future<Output = u8> = async { 1 };
        //~^ ERROR `async` blocks are not allowed in constants
        //~| ERROR destructors cannot be evaluated at compile-time
        1
    }],
}

fn main() {}