rust/tests/ui/generator/issue-57478.rs
Camille GILLOT 211d2ed07b Bless tests.
2023-09-23 13:47:30 +00:00

17 lines
228 B
Rust

// check-pass
#![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) {}