summaryrefslogtreecommitdiffstats
path: root/src/test/ui/borrowck/borrowck-return-variable-on-stack-via-clone.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/borrowck/borrowck-return-variable-on-stack-via-clone.stderr')
-rw-r--r--src/test/ui/borrowck/borrowck-return-variable-on-stack-via-clone.stderr12
1 files changed, 0 insertions, 12 deletions
diff --git a/src/test/ui/borrowck/borrowck-return-variable-on-stack-via-clone.stderr b/src/test/ui/borrowck/borrowck-return-variable-on-stack-via-clone.stderr
deleted file mode 100644
index d54449ac4..000000000
--- a/src/test/ui/borrowck/borrowck-return-variable-on-stack-via-clone.stderr
+++ /dev/null
@@ -1,12 +0,0 @@
-error[E0515]: cannot return value referencing function parameter `x`
- --> $DIR/borrowck-return-variable-on-stack-via-clone.rs:7:5
- |
-LL | (&x).clone()
- | ----^^^^^^^^
- | |
- | returns a value referencing data owned by the current function
- | `x` is borrowed here
-
-error: aborting due to previous error
-
-For more information about this error, try `rustc --explain E0515`.