summary refs log tree commit diff
path: root/src/test/run-pass/unique/unique-object-move.rs
blob: 4bd3764fa15a7e747cf6ce90e1fbe29b8e1cd7c1 (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<EventLoop> = box UvEventLoop { uvio: 0 } as Box<EventLoop>;
    let _loop2_ = loop_;
}