mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 17:24:06 +00:00
17 lines
229 B
Rust
17 lines
229 B
Rust
//@ check-pass
|
|
|
|
#![feature(negative_impls, coroutines)]
|
|
|
|
struct Foo;
|
|
impl !Send for Foo {}
|
|
|
|
fn main() {
|
|
assert_send(|| {
|
|
let guard = Foo;
|
|
drop(guard);
|
|
yield;
|
|
})
|
|
}
|
|
|
|
fn assert_send<T: Send>(_: T) {}
|