]>
Commit | Line | Data |
---|---|---|
b7449926 | 1 | // run-pass |
0bf4aa26 | 2 | #![allow(dead_code)] |
970d7e83 | 3 | // Issue #5192 |
223e47cc | 4 | |
c34b1796 AL |
5 | // pretty-expanded FIXME #23616 |
6 | ||
85aaf69f | 7 | pub trait EventLoop { fn foo(&self) {} } |
223e47cc | 8 | |
970d7e83 | 9 | pub struct UvEventLoop { |
c34b1796 | 10 | uvio: isize |
970d7e83 | 11 | } |
223e47cc | 12 | |
970d7e83 | 13 | impl EventLoop for UvEventLoop { } |
223e47cc LB |
14 | |
15 | pub fn main() { | |
c295e0f8 | 16 | let loop_: Box<dyn EventLoop> = Box::new(UvEventLoop { uvio: 0 }) as Box<dyn EventLoop>; |
1a4d82fc JJ |
17 | let _loop2_ = loop_; |
18 | } |