]> 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 dd44f7de3539fecf8fda0b31fce37bc2009a9b32..6b4f579f9c51c61c966874fe4049f771ce01f003 100644 (file)
 // pp-exact
 
 fn main() {
-    let x = Some(3);
+    let x = Some(3i);
     let _y =
         match x {
-            Some(_) => "some(_)".to_owned(),
-            None => "none".to_owned()
+            Some(_) => "some(_)".to_string(),
+            None => "none".to_string(),
         };
 }