summaryrefslogtreecommitdiffstats
path: root/src/test/ui/issues/issue-46983.stderr
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/test/ui/issues/issue-46983.stderr10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/test/ui/issues/issue-46983.stderr b/src/test/ui/issues/issue-46983.stderr
new file mode 100644
index 000000000..38a219bbd
--- /dev/null
+++ b/src/test/ui/issues/issue-46983.stderr
@@ -0,0 +1,10 @@
+error: lifetime may not live long enough
+ --> $DIR/issue-46983.rs:2:5
+ |
+LL | fn foo(x: &u32) -> &'static u32 {
+ | - let's call the lifetime of this reference `'1`
+LL | &*x
+ | ^^^ returning this value requires that `'1` must outlive `'static`
+
+error: aborting due to previous error
+