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/issues | |
| 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/issues')
| -rw-r--r-- | src/test/ui/issues/issue-20801.stderr | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/test/ui/issues/issue-20801.stderr b/src/test/ui/issues/issue-20801.stderr index 1bbd874a448..d276231dc0c 100644 --- a/src/test/ui/issues/issue-20801.stderr +++ b/src/test/ui/issues/issue-20801.stderr @@ -5,7 +5,7 @@ LL | let a = unsafe { *mut_ref() }; | ^^^^^^^^^^ | | | move occurs because value has type `T`, which does not implement the `Copy` trait - | help: consider removing the `*`: `mut_ref()` + | help: consider borrowing here: `&*mut_ref()` error[E0507]: cannot move out of a shared reference --> $DIR/issue-20801.rs:29:22 @@ -14,7 +14,7 @@ LL | let b = unsafe { *imm_ref() }; | ^^^^^^^^^^ | | | move occurs because value has type `T`, which does not implement the `Copy` trait - | help: consider removing the `*`: `imm_ref()` + | help: consider borrowing here: `&*imm_ref()` error[E0507]: cannot move out of a raw pointer --> $DIR/issue-20801.rs:32:22 @@ -23,7 +23,7 @@ LL | let c = unsafe { *mut_ptr() }; | ^^^^^^^^^^ | | | move occurs because value has type `T`, which does not implement the `Copy` trait - | help: consider removing the `*`: `mut_ptr()` + | help: consider borrowing here: `&*mut_ptr()` error[E0507]: cannot move out of a raw pointer --> $DIR/issue-20801.rs:35:22 @@ -32,7 +32,7 @@ LL | let d = unsafe { *const_ptr() }; | ^^^^^^^^^^^^ | | | move occurs because value has type `T`, which does not implement the `Copy` trait - | help: consider removing the `*`: `const_ptr()` + | help: consider borrowing here: `&*const_ptr()` error: aborting due to 4 previous errors |
