]> git.lizzy.rs Git - rust.git/blob - src/test/ui/unique/unique-assign-copy.rs
Pin panic-in-drop=abort test to old pass manager
[rust.git] / src / test / ui / unique / unique-assign-copy.rs
1 // run-pass
2 #![feature(box_syntax)]
3
4 pub fn main() {
5     let mut i: Box<_> = box 1;
6     // Should be a copy
7     let mut j;
8     j = i.clone();
9     *i = 2;
10     *j = 3;
11     assert_eq!(*i, 2);
12     assert_eq!(*j, 3);
13 }