diff options
| author | Esteban Küber <esteban@kuber.com.ar> | 2024-03-12 17:21:15 +0000 |
|---|---|---|
| committer | Esteban Küber <esteban@kuber.com.ar> | 2024-03-13 23:05:17 +0000 |
| commit | 0953608debfa9d3df955f976e7bc857584ba1ed0 (patch) | |
| tree | 9110f04cb2be71fc4e9139449ee314adf86661dd /tests | |
| parent | b367c25367117a4ada5c9a1c807b74f0efcf6d51 (diff) | |
| download | rust-0953608debfa9d3df955f976e7bc857584ba1ed0.tar.gz rust-0953608debfa9d3df955f976e7bc857584ba1ed0.zip | |
Account for UnOps in borrowck message
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/ui/unop-move-semantics.stderr | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/ui/unop-move-semantics.stderr b/tests/ui/unop-move-semantics.stderr index b6de7976ac9..187dd66b2fe 100644 --- a/tests/ui/unop-move-semantics.stderr +++ b/tests/ui/unop-move-semantics.stderr @@ -9,7 +9,7 @@ LL | LL | x.clone(); | ^ value borrowed here after move | -note: calling this operator moves the left-hand side +note: calling this operator moves the value --> $SRC_DIR/core/src/ops/bit.rs:LL:COL help: consider cloning the value if the performance cost is acceptable | @@ -57,7 +57,7 @@ LL | !*m; | |move occurs because `*m` has type `T`, which does not implement the `Copy` trait | `*m` moved due to usage in operator | -note: calling this operator moves the left-hand side +note: calling this operator moves the value --> $SRC_DIR/core/src/ops/bit.rs:LL:COL error[E0507]: cannot move out of `*n` which is behind a shared reference |
