]> git.lizzy.rs Git - rust.git/blobdiff - src/test/run-pass/import-glob-crate.rs
test: Make manual changes to deal with the fallout from removal of
[rust.git] / src / test / run-pass / import-glob-crate.rs
index e3ea5886fa3b186db147663f1aa8941b5e52e930..aeb2fdae9020390774c07337b07d66b701023fa8 100644 (file)
 #[feature(globs)];
 #[allow(dead_assignment)];
 
-use std::slice::*;
+use std::mem::*;
 
 pub fn main() {
-    let mut v = from_elem(0u, 0);
-    v = append(v, [4, 2]);
-    assert_eq!(from_fn(2, |i| 2*(i+1)), vec!(2, 4));
+    assert_eq!(size_of::<u8>(), 1);
+    let (mut x, mut y) = (1, 2);
+    swap(&mut x, &mut y);
+    assert_eq!(x, 2);
+    assert_eq!(x, 1);
 }