summaryrefslogtreecommitdiffstats
path: root/tests/ui/generic-associated-types/issue-90014.stderr
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--tests/ui/generic-associated-types/issue-90014.stderr22
1 files changed, 22 insertions, 0 deletions
diff --git a/tests/ui/generic-associated-types/issue-90014.stderr b/tests/ui/generic-associated-types/issue-90014.stderr
new file mode 100644
index 000000000..b4b1bc7da
--- /dev/null
+++ b/tests/ui/generic-associated-types/issue-90014.stderr
@@ -0,0 +1,22 @@
+error[E0477]: the type `&mut ()` does not fulfill the required lifetime
+ --> $DIR/issue-90014.rs:13:20
+ |
+LL | type Fut<'a> where Self: 'a;
+ | ------------ definition of `Fut` from trait
+...
+LL | type Fut<'a> = impl Future<Output = ()>;
+ | ^^^^^^^^^^^^^^^^^^^^^^^^
+ |
+note: type must outlive the lifetime `'a` as defined here
+ --> $DIR/issue-90014.rs:13:14
+ |
+LL | type Fut<'a> = impl Future<Output = ()>;
+ | ^^
+help: copy the `where` clause predicates from the trait
+ |
+LL | type Fut<'a> = impl Future<Output = ()> where Self: 'a;
+ | ++++++++++++++
+
+error: aborting due to previous error
+
+For more information about this error, try `rustc --explain E0477`.