2020-11-16 09:37:56 -06:00
|
|
|
// edition:2018
|
|
|
|
|
2021-03-12 04:53:51 -06:00
|
|
|
// revisions: min_tait full_tait
|
|
|
|
#![feature(min_type_alias_impl_trait)]
|
|
|
|
#![cfg_attr(full_tait, feature(type_alias_impl_trait))]
|
2020-11-16 09:37:56 -06:00
|
|
|
|
|
|
|
type F = impl core::future::Future<Output = u8>;
|
|
|
|
|
|
|
|
struct Bug {
|
|
|
|
V1: [(); {
|
|
|
|
fn concrete_use() -> F {
|
|
|
|
async {}
|
|
|
|
}
|
|
|
|
let f: F = async { 1 };
|
2021-07-16 08:06:26 -05:00
|
|
|
//~^ ERROR mismatched types [E0308]
|
2020-11-16 09:37:56 -06:00
|
|
|
1
|
|
|
|
}],
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {}
|