]>
git.proxmox.com Git - rustc.git/blob - src/test/ui/generator/partial-drop.rs
1 // compile-flags: -Zdrop-tracking
3 #![feature(negative_impls, generators)]
15 //~^ ERROR generator cannot be sent between threads safely
16 // FIXME: it would be nice to make this work.
17 let guard
= Bar { foo: Foo, x: 42 }
;
23 //~^ ERROR generator cannot be sent between threads safely
24 // FIXME: it would be nice to make this work.
25 let guard
= Bar { foo: Foo, x: 42 }
;
33 //~^ ERROR generator cannot be sent between threads safely
34 // FIXME: it would be nice to make this work.
35 let guard
= Bar { foo: Foo, x: 42 }
;
36 let Bar { foo, x }
= guard
;
42 fn assert_send
<T
: Send
>(_
: T
) {}