]> git.lizzy.rs Git - rust.git/blob - src/test/ui/generator/issue-57478.rs
Auto merge of #98051 - davidtwco:split-dwarf-stabilization, r=wesleywiser
[rust.git] / src / test / ui / generator / issue-57478.rs
1 // check-pass
2 // compile-flags: -Zdrop-tracking
3
4 #![feature(negative_impls, generators)]
5
6 struct Foo;
7 impl !Send for Foo {}
8
9 fn main() {
10     assert_send(|| {
11         let guard = Foo;
12         drop(guard);
13         yield;
14     })
15 }
16
17 fn assert_send<T: Send>(_: T) {}