]> git.lizzy.rs Git - rust.git/blob - src/test/ui/impl-trait/issues/issue-78721.rs
Allow combining -Cprofile-generate and -Cpanic=unwind when targeting
[rust.git] / src / test / ui / impl-trait / issues / issue-78721.rs
1 // edition:2018
2
3 #![feature(impl_trait_in_bindings)]
4 //~^ WARN the feature `impl_trait_in_bindings` is incomplete
5
6 struct Bug {
7     V1: [(); {
8         let f: impl core::future::Future<Output = u8> = async { 1 };
9         //~^ ERROR `async` blocks are not allowed in constants
10         //~| ERROR destructors cannot be evaluated at compile-time
11         1
12     }],
13 }
14
15 fn main() {}