]> git.lizzy.rs Git - rust.git/blobdiff - src/test/run-pass/expr-block.rs
cleanup: s/impl Copy/#[derive(Copy)]/g
[rust.git] / src / test / run-pass / expr-block.rs
index ee5d41fdd324b7c9b0b9de57d11caf0cb6e3c13a..7af9e790504df5b1b67986a9dac79a6a6d231044 100644 (file)
@@ -11,7 +11,6 @@
 
 
 
-// -*- rust -*-
 
 // Tests for standalone blocks as expressions
 fn test_basic() { let rs: bool = { true }; assert!((rs)); }
@@ -21,8 +20,8 @@ struct RS { v1: int, v2: int }
 fn test_rec() { let rs = { RS {v1: 10, v2: 20} }; assert!((rs.v2 == 20)); }
 
 fn test_filled_with_stuff() {
-    let rs = { let mut a = 0; while a < 10 { a += 1; } a };
-    assert!((rs == 10));
+    let rs = { let mut a = 0i; while a < 10 { a += 1; } a };
+    assert_eq!(rs, 10);
 }
 
 pub fn main() { test_basic(); test_rec(); test_filled_with_stuff(); }