4 thread_local!(static FOO: Foo = Foo);
5 thread_local!(static BAR: Bar = Bar(1));
6 thread_local!(static BAZ: Baz = Baz);
8 static mut HIT: bool = false;
22 assert_eq!(self.0, 1);
25 assert_eq!(self.0, 2);
31 unsafe { HIT = true; }
36 std::thread::spawn(|| {
39 assert!(unsafe { HIT });