]> git.lizzy.rs Git - rust.git/blob - src/test/ui/unique/unique-object-move.rs
Pin panic-in-drop=abort test to old pass manager
[rust.git] / src / test / ui / unique / unique-object-move.rs
1 // run-pass
2 #![allow(dead_code)]
3 // Issue #5192
4
5 // pretty-expanded FIXME #23616
6
7 #![feature(box_syntax)]
8
9 pub trait EventLoop { fn foo(&self) {} }
10
11 pub struct UvEventLoop {
12     uvio: isize
13 }
14
15 impl EventLoop for UvEventLoop { }
16
17 pub fn main() {
18     let loop_: Box<dyn EventLoop> = box UvEventLoop { uvio: 0 } as Box<dyn EventLoop>;
19     let _loop2_ = loop_;
20 }