Skip to content

Commit 2013792

Browse files
authored
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
2 parents 0e49feb + 6ac2235 commit 2013792

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
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() {}

0 commit comments

Comments
 (0)