summaryrefslogtreecommitdiffstats
path: root/tests/ui/nll/issue-54779-anon-static-lifetime.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/nll/issue-54779-anon-static-lifetime.stderr')
-rw-r--r--tests/ui/nll/issue-54779-anon-static-lifetime.stderr11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/ui/nll/issue-54779-anon-static-lifetime.stderr b/tests/ui/nll/issue-54779-anon-static-lifetime.stderr
new file mode 100644
index 000000000..64ad7a21a
--- /dev/null
+++ b/tests/ui/nll/issue-54779-anon-static-lifetime.stderr
@@ -0,0 +1,11 @@
+error: lifetime may not live long enough
+ --> $DIR/issue-54779-anon-static-lifetime.rs:32:24
+ |
+LL | cx: &dyn DebugContext,
+ | - let's call the lifetime of this reference `'1`
+...
+LL | bar.debug_with(cx);
+ | ^^ cast requires that `'1` must outlive `'static`
+
+error: aborting due to previous error
+