summaryrefslogtreecommitdiffstats
path: root/tests/ui/type-alias-impl-trait/weird-return-types.rs
blob: faad5ee956a1d30f5d4191342a4ab4a0e4e1cc13 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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() {}