summaryrefslogtreecommitdiffstats
path: root/src/test/ui/associated-types/bound-lifetime-in-return-only.local.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/associated-types/bound-lifetime-in-return-only.local.stderr')
-rw-r--r--src/test/ui/associated-types/bound-lifetime-in-return-only.local.stderr9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/test/ui/associated-types/bound-lifetime-in-return-only.local.stderr b/src/test/ui/associated-types/bound-lifetime-in-return-only.local.stderr
new file mode 100644
index 000000000..788cf667c
--- /dev/null
+++ b/src/test/ui/associated-types/bound-lifetime-in-return-only.local.stderr
@@ -0,0 +1,9 @@
+error[E0581]: return type references lifetime `'a`, which is not constrained by the fn input types
+ --> $DIR/bound-lifetime-in-return-only.rs:23:28
+ |
+LL | let _: for<'a> fn() -> &'a i32 = loop { };
+ | ^^^^^^^
+
+error: aborting due to previous error
+
+For more information about this error, try `rustc --explain E0581`.