2020-11-16 15:37:56 +00:00
|
|
|
// edition:2018
|
|
|
|
|
|
2021-07-26 17:01:16 -03:00
|
|
|
#![feature(type_alias_impl_trait)]
|
2020-11-16 15:37:56 +00:00
|
|
|
|
|
|
|
|
type F = impl core::future::Future<Output = u8>;
|
|
|
|
|
|
|
|
|
|
struct Bug {
|
|
|
|
|
V1: [(); {
|
|
|
|
|
fn concrete_use() -> F {
|
|
|
|
|
async {}
|
|
|
|
|
}
|
|
|
|
|
let f: F = async { 1 };
|
2021-08-20 14:47:12 +00:00
|
|
|
//~^ ERROR `async` blocks are not allowed in constants
|
|
|
|
|
//~| ERROR destructors cannot be evaluated at compile-time
|
2020-11-16 15:37:56 +00:00
|
|
|
1
|
|
|
|
|
}],
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
fn main() {}
|