mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-07 20:43:03 +00:00
Add test case for #57478
This commit is contained in:
parent
9ad5d82f82
commit
4be32f896a
14
src/test/ui/generator/issue-57478.rs
Normal file
14
src/test/ui/generator/issue-57478.rs
Normal file
@ -0,0 +1,14 @@
|
||||
#![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) {}
|
Loading…
Reference in New Issue
Block a user