]> git.lizzy.rs Git - rust.git/blob - src/test/ui/type-alias-impl-trait/weird-return-types.rs
Add 'library/portable-simd/' from commit '1ce1c645cf27c4acdefe6ec8a11d1f0491954a99'
[rust.git] / src / test / ui / type-alias-impl-trait / weird-return-types.rs
1 // edition:2018
2 // check-pass
3
4 #![feature(type_alias_impl_trait)]
5 #![allow(dead_code)]
6
7 use std::future::Future;
8 use std::fmt::Debug;
9
10 type Foo = impl Debug;
11
12 fn f() -> impl Future<Output = Foo> {
13     async move { 22_u32 }
14 }
15
16 fn main() {}