3 // [thir]compile-flags: -Zthir-unsafeck
5 #![feature(generators)]
7 static mut A: [i32; 5] = [1, 2, 3, 4, 5];
9 fn is_send_sync<T: Send + Sync>(_: T) {}
13 let gen_index = static || {
19 let gen_match = static || match A {
29 is_send_sync(gen_index);
30 is_send_sync(gen_match);