X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=src%2Ftest%2Fpretty%2Fmatch-naked-expr-medium.rs;h=c05c3d7fe8fc9b6b44a6278db39afcc8a834dca8;hb=919889a1d688a6bbe2edac8705f048f06b1b455c;hp=5b52acdff50691628c60addf9e6babded5c1fa97;hpb=b75683cadf6c4c55360202cd6a0106be80532451;p=rust.git diff --git a/src/test/pretty/match-naked-expr-medium.rs b/src/test/pretty/match-naked-expr-medium.rs index 5b52acdff50..c05c3d7fe8f 100644 --- a/src/test/pretty/match-naked-expr-medium.rs +++ b/src/test/pretty/match-naked-expr-medium.rs @@ -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()] }; }