Rollup merge of #88413 - spastorino:weird-return-types-tait-test, r=oli-obk

Add weird return types TAIT test

r? `@oli-obk`

Related to #86727
This commit is contained in:
Mara Bos 2021-08-31 10:41:21 +02:00 committed by GitHub
commit 2013792641
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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() {}