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