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