summaryrefslogtreecommitdiff
path: root/tests/ui/borrowck/borrowck-unary-move.stderr
diff options
context:
space:
mode:
authorEsteban Küber <esteban@kuber.com.ar>2023-01-17 02:45:11 +0000
committerEsteban Küber <esteban@kuber.com.ar>2023-01-17 02:45:11 +0000
commitbe2ec32b18f7ad858dc746b26eb3a91a62a2c360 (patch)
tree179269f8d720b4a4edb46d47706e4af5f41fe3fd /tests/ui/borrowck/borrowck-unary-move.stderr
parente4f61afa779e01af24c6f20394de8e3950b368c2 (diff)
downloadrust-be2ec32b18f7ad858dc746b26eb3a91a62a2c360.tar.gz
Account for `*` when looking for inner-most path in expression
Diffstat (limited to 'tests/ui/borrowck/borrowck-unary-move.stderr')
-rw-r--r--tests/ui/borrowck/borrowck-unary-move.stderr2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/ui/borrowck/borrowck-unary-move.stderr b/tests/ui/borrowck/borrowck-unary-move.stderr
index aab225ed4a4..f3b962059f5 100644
--- a/tests/ui/borrowck/borrowck-unary-move.stderr
+++ b/tests/ui/borrowck/borrowck-unary-move.stderr
@@ -1,6 +1,8 @@
error[E0505]: cannot move out of `x` because it is borrowed
--> $DIR/borrowck-unary-move.rs:3:10
|
+LL | fn foo(x: Box<isize>) -> isize {
+ | - binding `x` declared here
LL | let y = &*x;
| --- borrow of `*x` occurs here
LL | free(x);