about summary refs log tree commit diff
path: root/src/libcore/mem.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/libcore/mem.rs')
-rw-r--r--src/libcore/mem.rs10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/libcore/mem.rs b/src/libcore/mem.rs
index d1e2084243d..39ec830179c 100644
--- a/src/libcore/mem.rs
+++ b/src/libcore/mem.rs
@@ -475,7 +475,7 @@ mod tests {
 
     #[test]
     fn test_transmute_copy() {
-        assert_eq!(1u, unsafe { ::mem::transmute_copy(&1) });
+        assert_eq!(1u, unsafe { ::mem::transmute_copy(&1i) });
     }
 
     #[test]
@@ -541,7 +541,7 @@ mod bench {
 
     #[bench]
     fn match_option_some(b: &mut Bencher) {
-        let x = Some(10);
+        let x = Some(10i);
         b.iter(|| {
             match x {
                 Some(y) => y,
@@ -552,11 +552,11 @@ mod bench {
 
     #[bench]
     fn match_vec_pattern(b: &mut Bencher) {
-        let x = [1,2,3,4,5,6];
+        let x = [1i,2,3,4,5,6];
         b.iter(|| {
             match x {
-                [1,2,3,..] => 10,
-                _ => 11
+                [1,2,3,..] => 10i,
+                _ => 11i,
             }
         });
     }