We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7b0e554 commit 6ac2235Copy full SHA for 6ac2235
src/test/ui/type-alias-impl-trait/weird-return-types.rs
@@ -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