blob: 6ae95949e84da428a2c040ad9b185dab2dab8bae [file] [log] [blame]
// run-pass
#![feature(box_syntax)]
pub fn main() {
let mut i: Box<_> = box 1;
// Should be a copy
let mut j = i.clone();
*i = 2;
*j = 3;
assert_eq!(*i, 2);
assert_eq!(*j, 3);
}