]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/nll/cannot-move-block-spans.stderr
New upstream version 1.48.0~beta.8+dfsg1
[rustc.git] / src / test / ui / nll / cannot-move-block-spans.stderr
index 7db5d731acd17baa49079f5113f688cf7e14c142..56a5cdff073e48aceffb69519776de9c0ed680c9 100644 (file)
@@ -4,7 +4,7 @@ error[E0507]: cannot move out of `*r` which is behind a shared reference
 LL |     let x = { *r };
    |               ^^
    |               |
-   |               move occurs because `*r` has type `std::string::String`, which does not implement the `Copy` trait
+   |               move occurs because `*r` has type `String`, which does not implement the `Copy` trait
    |               help: consider borrowing here: `&*r`
 
 error[E0507]: cannot move out of `*r` which is behind a shared reference
@@ -13,7 +13,7 @@ error[E0507]: cannot move out of `*r` which is behind a shared reference
 LL |     let y = unsafe { *r };
    |                      ^^
    |                      |
-   |                      move occurs because `*r` has type `std::string::String`, which does not implement the `Copy` trait
+   |                      move occurs because `*r` has type `String`, which does not implement the `Copy` trait
    |                      help: consider borrowing here: `&*r`
 
 error[E0507]: cannot move out of `*r` which is behind a shared reference
@@ -22,37 +22,37 @@ error[E0507]: cannot move out of `*r` which is behind a shared reference
 LL |     let z = loop { break *r; };
    |                          ^^
    |                          |
-   |                          move occurs because `*r` has type `std::string::String`, which does not implement the `Copy` trait
+   |                          move occurs because `*r` has type `String`, which does not implement the `Copy` trait
    |                          help: consider borrowing here: `&*r`
 
-error[E0508]: cannot move out of type `[std::string::String; 2]`, a non-copy array
+error[E0508]: cannot move out of type `[String; 2]`, a non-copy array
   --> $DIR/cannot-move-block-spans.rs:11:15
    |
 LL |     let x = { arr[0] };
    |               ^^^^^^
    |               |
    |               cannot move out of here
-   |               move occurs because `arr[_]` has type `std::string::String`, which does not implement the `Copy` trait
+   |               move occurs because `arr[_]` has type `String`, which does not implement the `Copy` trait
    |               help: consider borrowing here: `&arr[0]`
 
-error[E0508]: cannot move out of type `[std::string::String; 2]`, a non-copy array
+error[E0508]: cannot move out of type `[String; 2]`, a non-copy array
   --> $DIR/cannot-move-block-spans.rs:12:22
    |
 LL |     let y = unsafe { arr[0] };
    |                      ^^^^^^
    |                      |
    |                      cannot move out of here
-   |                      move occurs because `arr[_]` has type `std::string::String`, which does not implement the `Copy` trait
+   |                      move occurs because `arr[_]` has type `String`, which does not implement the `Copy` trait
    |                      help: consider borrowing here: `&arr[0]`
 
-error[E0508]: cannot move out of type `[std::string::String; 2]`, a non-copy array
+error[E0508]: cannot move out of type `[String; 2]`, a non-copy array
   --> $DIR/cannot-move-block-spans.rs:13:26
    |
 LL |     let z = loop { break arr[0]; };
    |                          ^^^^^^
    |                          |
    |                          cannot move out of here
-   |                          move occurs because `arr[_]` has type `std::string::String`, which does not implement the `Copy` trait
+   |                          move occurs because `arr[_]` has type `String`, which does not implement the `Copy` trait
    |                          help: consider borrowing here: `&arr[0]`
 
 error[E0507]: cannot move out of `*r` which is behind a shared reference
@@ -61,7 +61,7 @@ error[E0507]: cannot move out of `*r` which is behind a shared reference
 LL |     let x = { let mut u = 0; u += 1; *r };
    |                                      ^^
    |                                      |
-   |                                      move occurs because `*r` has type `std::string::String`, which does not implement the `Copy` trait
+   |                                      move occurs because `*r` has type `String`, which does not implement the `Copy` trait
    |                                      help: consider borrowing here: `&*r`
 
 error[E0507]: cannot move out of `*r` which is behind a shared reference
@@ -70,7 +70,7 @@ error[E0507]: cannot move out of `*r` which is behind a shared reference
 LL |     let y = unsafe { let mut u = 0; u += 1; *r };
    |                                             ^^
    |                                             |
-   |                                             move occurs because `*r` has type `std::string::String`, which does not implement the `Copy` trait
+   |                                             move occurs because `*r` has type `String`, which does not implement the `Copy` trait
    |                                             help: consider borrowing here: `&*r`
 
 error[E0507]: cannot move out of `*r` which is behind a shared reference
@@ -79,7 +79,7 @@ error[E0507]: cannot move out of `*r` which is behind a shared reference
 LL |     let z = loop { let mut u = 0; u += 1; break *r; u += 2; };
    |                                                 ^^
    |                                                 |
-   |                                                 move occurs because `*r` has type `std::string::String`, which does not implement the `Copy` trait
+   |                                                 move occurs because `*r` has type `String`, which does not implement the `Copy` trait
    |                                                 help: consider borrowing here: `&*r`
 
 error: aborting due to 9 previous errors