]> git.lizzy.rs Git - rust.git/blobdiff - src/test/compile-fail/borrowck-move-in-irrefut-pat.rs
Replace all ~"" with "".to_owned()
[rust.git] / src / test / compile-fail / borrowck-move-in-irrefut-pat.rs
index 47bb75cd11b1915a5d9dd0befa18ac6ef148cbde..2be5d5701352ab98e376cf62e75b90afcc8eabb7 100644 (file)
@@ -19,7 +19,7 @@ fn arg_closure() {
 }
 
 fn let_pat() {
-    let &_x = &~"hi";
+    let &_x = &"hi".to_owned();
     //~^ ERROR cannot move out of dereference of `&`-pointer
 }