]> 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 15c49cd41157e180e3699459fbb3fb9e17c41f52..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(),
+        };
 }