1 // check that the local data keys are private by default. 2 3 mod bar { 4 thread_local!(static baz: f64 = 0.0); 5 } 6 main()7 fn main() { 8 bar::baz.with(|_| ()); 9 //~^ ERROR `baz` is private 10 } 11