summaryrefslogtreecommitdiff
path: root/tests/ui/nll/issue-30438-c.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/nll/issue-30438-c.stderr')
-rw-r--r--tests/ui/nll/issue-30438-c.stderr9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/ui/nll/issue-30438-c.stderr b/tests/ui/nll/issue-30438-c.stderr
new file mode 100644
index 00000000000..7c001088097
--- /dev/null
+++ b/tests/ui/nll/issue-30438-c.stderr
@@ -0,0 +1,9 @@
+error[E0515]: cannot return reference to local variable `x`
+ --> $DIR/issue-30438-c.rs:9:5
+ |
+LL | &x
+ | ^^ returns a reference to data owned by the current function
+
+error: aborting due to previous error
+
+For more information about this error, try `rustc --explain E0515`.