blob: 91407ea1844f54922c084cb77f34619928f7d1e9 [file] [log] [blame]
// check-pass
// compile-flags: -Zdrop-tracking
#![feature(negative_impls, generators)]
struct Foo;
impl !Send for Foo {}
fn main() {
assert_send(|| {
let guard = Foo;
drop(guard);
yield;
})
}
fn assert_send<T: Send>(_: T) {}