summaryrefslogtreecommitdiffstats
path: root/src/test/ui/issues/issue-47511.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/issues/issue-47511.stderr')
-rw-r--r--src/test/ui/issues/issue-47511.stderr3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/test/ui/issues/issue-47511.stderr b/src/test/ui/issues/issue-47511.stderr
index 5b84f7ed6..9998ee0e8 100644
--- a/src/test/ui/issues/issue-47511.stderr
+++ b/src/test/ui/issues/issue-47511.stderr
@@ -4,7 +4,8 @@ error[E0581]: return type references an anonymous lifetime, which is not constra
LL | fn f(_: X) -> X {
| ^
|
- = note: lifetimes appearing in an associated type are not considered constrained
+ = note: lifetimes appearing in an associated or opaque type are not considered constrained
+ = note: consider introducing a named lifetime parameter
error[E0581]: return type references lifetime `'a`, which is not constrained by the fn input types
--> $DIR/issue-47511.rs:12:23