]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/nll/move-errors.stderr
New upstream version 1.48.0~beta.8+dfsg1
[rustc.git] / src / test / ui / nll / move-errors.stderr
index d4a0e45648c25ea2653e9568bf4478119c3f592b..0df326425ad9c60ca035007ba74b75f4ffaf39c2 100644 (file)
@@ -52,7 +52,7 @@ LL |     let A(s) = *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
+   |           move occurs because `s` has type `String`, which does not implement the `Copy` trait
 
 error[E0509]: cannot move out of type `D`, which implements the `Drop` trait
   --> $DIR/move-errors.rs:44:19
@@ -61,7 +61,7 @@ LL |     let C(D(s)) = c;
    |             -     ^ cannot move out of here
    |             |
    |             data moved here
-   |             move occurs because `s` has type `std::string::String`, which does not implement the `Copy` trait
+   |             move occurs because `s` has type `String`, which does not implement the `Copy` trait
 
 error[E0507]: cannot move out of `*a` which is behind a shared reference
   --> $DIR/move-errors.rs:51:9
@@ -95,7 +95,7 @@ LL |         B::U(D(s)) => (),
    |                -
    |                |
    |                data moved here
-   |                move occurs because `s` has type `std::string::String`, which does not implement the `Copy` trait
+   |                move occurs because `s` has type `String`, which does not implement the `Copy` trait
 
 error[E0509]: cannot move out of type `D`, which implements the `Drop` trait
   --> $DIR/move-errors.rs:92:11
@@ -107,7 +107,7 @@ LL |         (D(s), &t) => (),
    |            -
    |            |
    |            data moved here
-   |            move occurs because `s` has type `std::string::String`, which does not implement the `Copy` trait
+   |            move occurs because `s` has type `String`, which does not implement the `Copy` trait
 
 error[E0507]: cannot move out of `*x.1` which is behind a shared reference
   --> $DIR/move-errors.rs:92:11
@@ -119,7 +119,7 @@ LL |         (D(s), &t) => (),
    |                 -
    |                 |
    |                 data moved here
-   |                 move occurs because `t` has type `std::string::String`, which does not implement the `Copy` trait
+   |                 move occurs because `t` has type `String`, which does not implement the `Copy` trait
 
 error[E0509]: cannot move out of type `F`, which implements the `Drop` trait
   --> $DIR/move-errors.rs:102:11
@@ -144,7 +144,7 @@ LL |         Ok(s) | Err(s) => (),
    |            -
    |            |
    |            data moved here
-   |            move occurs because `s` has type `std::string::String`, which does not implement the `Copy` trait
+   |            move occurs because `s` has type `String`, which does not implement the `Copy` trait
 
 error: aborting due to 14 previous errors