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 };
|
2022-02-11 07:18:06 +00:00
|
|
|
//~^ ERROR mismatched types [E0308]
|
2020-11-16 15:37:56 +00:00
|
|
|
1
|
|
|
|
|
}],
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
fn main() {}
|