]> git.lizzy.rs Git - rust.git/blobdiff - src/test/run-pass/binary-minus-without-space.rs
cleanup: s/impl Copy/#[derive(Copy)]/g
[rust.git] / src / test / run-pass / binary-minus-without-space.rs
index 50dbefdd086a9813b6d8165519c4a3e6e94fadb6..8235b91273b521df5d9bbafa25a5d36ed7f18d88 100644 (file)
@@ -11,6 +11,6 @@
 // Check that issue #954 stays fixed
 
 pub fn main() {
-    match -1 { -1 => {}, _ => fail!(~"wat") }
-    assert!(1-1 == 0);
+    match -1i { -1 => {}, _ => panic!("wat") }
+    assert_eq!(1i-1, 0i);
 }