]> git.lizzy.rs Git - rust.git/blobdiff - src/test/pretty/match-naked-expr-medium.rs
Replace all ~"" with "".to_owned()
[rust.git] / src / test / pretty / match-naked-expr-medium.rs
index 5b52acdff50691628c60addf9e6babded5c1fa97..c05c3d7fe8fc9b6b44a6278db39afcc8a834dca8 100644 (file)
@@ -14,7 +14,11 @@ fn main() {
     let x = Some(3);
     let _y =
         match x {
-            Some(_) => [~"some(_)", ~"not", ~"SO", ~"long", ~"string"],
-            None => [~"none", ~"a", ~"a", ~"a", ~"a"]
+            Some(_) =>
+            ["some(_)".to_owned(), "not".to_owned(), "SO".to_owned(),
+             "long".to_owned(), "string".to_owned()],
+            None =>
+            ["none".to_owned(), "a".to_owned(), "a".to_owned(),
+             "a".to_owned(), "a".to_owned()]
         };
 }