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:
commit
2013792641
16
src/test/ui/type-alias-impl-trait/weird-return-types.rs
Normal file
16
src/test/ui/type-alias-impl-trait/weird-return-types.rs
Normal 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() {}
|
Loading…
x
Reference in New Issue
Block a user