]> git.lizzy.rs Git - rust.git/blob - tests/ui/macros/macro-local-data-key-priv.rs
Auto merge of #106976 - tmiasko:borrowck-lazy-dominators, r=cjgillot
[rust.git] / tests / ui / macros / macro-local-data-key-priv.rs
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
7 fn main() {
8     bar::baz.with(|_| ());
9     //~^ ERROR `baz` is private
10 }