Add test case for #57478
This commit is contained in:
parent
9ad5d82f82
commit
4be32f896a
1 changed files with 14 additions and 0 deletions
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…
Add table
Reference in a new issue