Add weird return types TAIT test
This commit is contained in:
parent
7b0e554ee2
commit
6ac223582f
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