core: Bring clone tests up to date in style

This commit is contained in:
Alex Crichton
2014-04-30 20:56:40 -07:00
parent 54b81997f3
commit 1a989d6769

View File

@@ -126,6 +126,8 @@ extern_fn_clone!(A, B, C, D, E, F)
extern_fn_clone!(A, B, C, D, E, F, G)
extern_fn_clone!(A, B, C, D, E, F, G, H)
#[cfg(test)]
mod test {
#[test]
fn test_owned_clone() {
let a = box 5i;
@@ -150,8 +152,8 @@ fn test_borrowed_clone() {
#[test]
fn test_clone_from() {
let a = box 5;
let mut b = box 10;
let a = ~5;
let mut b = ~10;
b.clone_from(&a);
assert_eq!(*b, 5);
}
@@ -169,3 +171,4 @@ fn test_extern_fn_clone() {
let _ = test_fn_b::<int>.clone();
let _ = test_fn_c.clone();
}
}