]> git.proxmox.com Git - rustc.git/blobdiff - src/test/run-fail/match-wildcards.rs
Imported Upstream version 1.0.0~beta
[rustc.git] / src / test / run-fail / match-wildcards.rs
index 22613f45b3bc42932aabebbcddf2d2ea464857b5..54e24de31653106614e92b960b08d277e70f05e9 100644 (file)
@@ -9,12 +9,12 @@
 // except according to those terms.
 
 // error-pattern:squirrelcupcake
-fn cmp() -> int {
+fn cmp() -> isize {
     match (Some('a'), None::<char>) {
-        (Some(_), _) => { fail!("squirrelcupcake"); }
-        (_, Some(_)) => { fail!(); }
-        _                    => { fail!("wat"); }
+        (Some(_), _) => { panic!("squirrelcupcake"); }
+        (_, Some(_)) => { panic!(); }
+        _                    => { panic!("wat"); }
     }
 }
 
-fn main() { error!(cmp()); }
+fn main() { println!("{}", cmp()); }