rust/tests/ui/macros/macro-local-data-key-priv.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

11 lines
187 B
Rust
Raw Normal View History

// check that the local data keys are private by default.
mod bar {
thread_local!(static baz: f64 = 0.0);
}
fn main() {
bar::baz.with(|_| ());
//~^ ERROR `baz` is private
}