diff options
author | Esteban Küber <esteban@kuber.com.ar> | 2023-01-17 02:45:11 +0000 |
---|---|---|
committer | Esteban Küber <esteban@kuber.com.ar> | 2023-01-17 02:45:11 +0000 |
commit | be2ec32b18f7ad858dc746b26eb3a91a62a2c360 (patch) | |
tree | 179269f8d720b4a4edb46d47706e4af5f41fe3fd /tests/ui/borrowck/borrowck-unary-move.stderr | |
parent | e4f61afa779e01af24c6f20394de8e3950b368c2 (diff) | |
download | rust-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.stderr | 2 |
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); |