diff options
| author | Kenny Goodin <kennethbgoodin@gmail.com> | 2019-05-29 18:58:54 -0400 |
|---|---|---|
| committer | Kenny Goodin <kennethbgoodin@gmail.com> | 2019-06-04 13:31:40 -0400 |
| commit | de677b993fba6a2af9dbcbda0db1671f2d84f451 (patch) | |
| tree | d5b37be5544fd37db75be887dd217552ac78d5f9 /src/test/ui/nll/move-errors.stderr | |
| parent | acda261de83475cf6cbc607d570153bb864ee7be (diff) | |
| download | rust-de677b993fba6a2af9dbcbda0db1671f2d84f451.tar.gz rust-de677b993fba6a2af9dbcbda0db1671f2d84f451.zip | |
Remove asterisk suggestion for move errors in borrowck
As per issue #54985 removes the not useful suggestion to remove asterisk in move errors. Includes minor changes to tests in the `ui` suite to account for the removed suggestion.
Diffstat (limited to 'src/test/ui/nll/move-errors.stderr')
| -rw-r--r-- | src/test/ui/nll/move-errors.stderr | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/test/ui/nll/move-errors.stderr b/src/test/ui/nll/move-errors.stderr index 086f7bcdc4f..7139617a97a 100644 --- a/src/test/ui/nll/move-errors.stderr +++ b/src/test/ui/nll/move-errors.stderr @@ -5,7 +5,7 @@ LL | let b = *a; | ^^ | | | move occurs because `*a` has type `A`, which does not implement the `Copy` trait - | help: consider removing the `*`: `a` + | help: consider borrowing here: `&*a` error[E0508]: cannot move out of type `[A; 1]`, a non-copy array --> $DIR/move-errors.rs:12:13 @@ -24,7 +24,7 @@ LL | let s = **r; | ^^^ | | | move occurs because `**r` has type `A`, which does not implement the `Copy` trait - | help: consider removing the `*`: `*r` + | help: consider borrowing here: `&**r` error[E0507]: cannot move out of an `Rc` --> $DIR/move-errors.rs:27:13 @@ -33,7 +33,7 @@ LL | let s = *r; | ^^ | | | move occurs because value has type `A`, which does not implement the `Copy` trait - | help: consider removing the `*`: `r` + | help: consider borrowing here: `&*r` error[E0508]: cannot move out of type `[A; 1]`, a non-copy array --> $DIR/move-errors.rs:32:13 @@ -49,7 +49,7 @@ error[E0507]: cannot move out of `a.0` which is behind a shared reference --> $DIR/move-errors.rs:38:16 | LL | let A(s) = *a; - | - ^^ help: consider removing the `*`: `a` + | - ^^ help: consider borrowing here: `&*a` | | | data moved here | move occurs because `s` has type `std::string::String`, which does not implement the `Copy` trait @@ -148,7 +148,7 @@ error[E0507]: cannot move out of `x.0` which is behind a shared reference --> $DIR/move-errors.rs:110:11 | LL | match *x { - | ^^ help: consider removing the `*`: `x` + | ^^ help: consider borrowing here: `&*x` LL | LL | Ok(s) | Err(s) => (), | - |
