3 thread_local!(static FOO: Foo = Foo);
4 thread_local!(static BAR: Bar = Bar(1));
5 thread_local!(static BAZ: Baz = Baz);
7 static mut HIT: bool = false;
21 assert_eq!(self.0, 1);
24 assert_eq!(self.0, 2);
30 unsafe { HIT = true; }
35 std::thread::spawn(|| {
38 assert!(unsafe { HIT });