summaryrefslogtreecommitdiffstats
path: root/src/test/ui/issues/issue-26217.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/issues/issue-26217.stderr')
-rw-r--r--src/test/ui/issues/issue-26217.stderr6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/test/ui/issues/issue-26217.stderr b/src/test/ui/issues/issue-26217.stderr
index c7601caac..73c772205 100644
--- a/src/test/ui/issues/issue-26217.stderr
+++ b/src/test/ui/issues/issue-26217.stderr
@@ -5,6 +5,12 @@ LL | fn bar<'a>() {
| -- lifetime `'a` defined here
LL | foo::<&'a i32>();
| ^^^^^^^^^^^^^^ requires that `'a` must outlive `'static`
+ |
+note: due to current limitations in the borrow checker, this implies a `'static` lifetime
+ --> $DIR/issue-26217.rs:1:30
+ |
+LL | fn foo<T>() where for<'a> T: 'a {}
+ | ^^
error: aborting due to previous error