We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6a5f02b commit a54988aCopy full SHA for a54988a
tests/ui/impl-trait/future-no-bound-vars-ice-112347.rs
@@ -0,0 +1,29 @@
1
+// issue: rust-lang/rust#112347
2
+// ICE future has no bound vars
3
+//@ edition:2021
4
+//@ check-pass
5
+
6
+#![feature(type_alias_impl_trait)]
7
8
+use std::future::Future;
9
10
+type Fut<'a> = impl Future<Output = ()> + 'a;
11
12
+fn foo<'a>(_: &()) -> Fut<'_> {
13
+ async {}
14
+}
15
16
+trait Test {
17
+ fn hello();
18
19
20
+impl Test for ()
21
+where
22
+ for<'a> Fut<'a>: Future<Output = ()>,
23
+{
24
+ fn hello() {}
25
26
27
+fn main() {
28
+ <()>::hello();
29
0 commit comments