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