]> 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 b7fa7915aa58714e9afd14655f28458eb24b8f0f..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);
 }