We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 57e1da5 commit fda913bCopy full SHA for fda913b
src/test/ui/type-alias-impl-trait/issue-55099-lifetime-inference.rs
@@ -0,0 +1,28 @@
1
+// check-pass
2
+// Regression test for issue #55099
3
+// Tests that we don't incorrectly consider a lifetime to part
4
+// of the concrete type
5
+
6
+#![feature(type_alias_impl_trait)]
7
8
+trait Future {
9
+}
10
11
+struct AndThen<F>(F);
12
13
+impl<F> Future for AndThen<F> {
14
15
16
+struct Foo<'a> {
17
+ x: &'a mut (),
18
19
20
+type F = impl Future;
21
22
+impl<'a> Foo<'a> {
23
+ fn reply(&mut self) -> F {
24
+ AndThen(|| ())
25
+ }
26
27
28
+fn main() {}
0 commit comments