summary refs log tree commit diff
path: root/src/test/ui/unique/unique-object-move.rs
blob: 84e8cdb32b84e588a03ed474451900fa53f1acb3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// run-pass
#![allow(dead_code)]
// Issue #5192

// pretty-expanded FIXME #23616

#![feature(box_syntax)]

pub trait EventLoop { fn foo(&self) {} }

pub struct UvEventLoop {
    uvio: isize
}

impl EventLoop for UvEventLoop { }

pub fn main() {
    let loop_: Box<dyn EventLoop> = box UvEventLoop { uvio: 0 } as Box<dyn EventLoop>;
    let _loop2_ = loop_;
}