summaryrefslogtreecommitdiffstats
path: root/src/test/ui/regions/regions-infer-borrow-scope-too-big.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/regions/regions-infer-borrow-scope-too-big.stderr')
-rw-r--r--src/test/ui/regions/regions-infer-borrow-scope-too-big.stderr12
1 files changed, 0 insertions, 12 deletions
diff --git a/src/test/ui/regions/regions-infer-borrow-scope-too-big.stderr b/src/test/ui/regions/regions-infer-borrow-scope-too-big.stderr
deleted file mode 100644
index 2c7a6e8b5..000000000
--- a/src/test/ui/regions/regions-infer-borrow-scope-too-big.stderr
+++ /dev/null
@@ -1,12 +0,0 @@
-error[E0515]: cannot return value referencing local data `*p`
- --> $DIR/regions-infer-borrow-scope-too-big.rs:13:12
- |
-LL | let xc = x_coord(&*p);
- | --- `*p` is borrowed here
-LL | assert_eq!(*xc, 3);
-LL | return xc;
- | ^^ returns a value referencing data owned by the current function
-
-error: aborting due to previous error
-
-For more information about this error, try `rustc --explain E0515`.