]> git.lizzy.rs Git - rust.git/blobdiff - src/test/pretty/match-naked-expr.rs
auto merge of #15999 : Kimundi/rust/fix_folder, r=nikomatsakis
[rust.git] / src / test / pretty / match-naked-expr.rs
index ac5ef5fcf5328333a78684b7ac940a4798d5d57f..6b4f579f9c51c61c966874fe4049f771ce01f003 100644 (file)
 // pp-exact
 
 fn main() {
-    let x = Some(3);
-    let _y = match x { Some(_) => ~"some(_)", None => ~"none" };
+    let x = Some(3i);
+    let _y =
+        match x {
+            Some(_) => "some(_)".to_string(),
+            None => "none".to_string(),
+        };
 }