Skip to content

Commit

Permalink
Add weird return types TAIT test
Browse files Browse the repository at this point in the history
  • Loading branch information
spastorino committed Aug 28, 2021
1 parent 7b0e554 commit 6ac2235
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/test/ui/type-alias-impl-trait/weird-return-types.rs
@@ -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() {}

0 comments on commit 6ac2235

Please sign in to comment.