]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/moves/moves-based-on-type-distribute-copy-over-paren.rs
New upstream version 1.48.0~beta.8+dfsg1
[rustc.git] / src / test / ui / moves / moves-based-on-type-distribute-copy-over-paren.rs
index 0b44ca56ced47bb0fda4508456ad53b42cf4f66f..d256e18b6ca973cbaeae98ff165a663ae0a4b254 100644 (file)
@@ -6,7 +6,7 @@ fn touch<A>(_a: &A) {}
 
 fn f00() {
     let x = "hi".to_string();
-    //~^ NOTE move occurs because `x` has type `std::string::String`
+    //~^ NOTE move occurs because `x` has type `String`
     let _y = Foo { f:x };
     //~^ NOTE value moved here
     touch(&x); //~ ERROR borrow of moved value: `x`
@@ -15,7 +15,7 @@ fn f00() {
 
 fn f05() {
     let x = "hi".to_string();
-    //~^ NOTE move occurs because `x` has type `std::string::String`
+    //~^ NOTE move occurs because `x` has type `String`
     let _y = Foo { f:(((x))) };
     //~^ NOTE value moved here
     touch(&x); //~ ERROR borrow of moved value: `x`