Add weird return types TAIT test

This commit is contained in:
Santiago Pastorino 2021-08-27 22:40:23 -03:00
parent 7b0e554ee2
commit 6ac223582f
No known key found for this signature in database
GPG Key ID: 8131A24E0C79EFAF

View File

@ -0,0 +1,16 @@
// edition:2018
// check-pass
#![feature(type_alias_impl_trait)]
#![allow(dead_code)]
use std::future::Future;
use std::fmt::Debug;
type Foo = impl Debug;
fn f() -> impl Future<Output = Foo> {
async move { 22_u32 }
}
fn main() {}