Skip to content

Commit 4be32f8

Browse files
committed
Add test case for rust-lang#57478
1 parent 9ad5d82 commit 4be32f8

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

src/test/ui/generator/issue-57478.rs

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#![feature(negative_impls, generators)]
2+
3+
struct Foo;
4+
impl !Send for Foo {}
5+
6+
fn main() {
7+
assert_send(|| {
8+
let guard = Foo;
9+
drop(guard);
10+
yield;
11+
})
12+
}
13+
14+
fn assert_send<T: Send>(_: T) {}

0 commit comments

Comments
 (0)