]>
git.proxmox.com Git - rustc.git/blob - src/test/ui/issues/issue-5192.rs
3 // pretty-expanded FIXME #23616
5 #![feature(box_syntax)]
11 pub struct UvEventLoop
{
16 pub fn new() -> UvEventLoop
{
23 impl EventLoop
for UvEventLoop
{
26 pub struct Scheduler
{
27 event_loop
: Box
<dyn EventLoop
+'
static>,
32 pub fn new(event_loop
: Box
<dyn EventLoop
+'
static>) -> Scheduler
{
34 event_loop
: event_loop
,
40 let _sched
= Scheduler
::new(box UvEventLoop
::new() as Box
<dyn EventLoop
>);