]> git.lizzy.rs Git - rust.git/blob - tests/ui/macros/macro-local-data-key-priv.stderr
Rollup merge of #106970 - kylematsuda:earlybinder-item-bounds, r=lcnr
[rust.git] / tests / ui / macros / macro-local-data-key-priv.stderr
1 error[E0603]: constant `baz` is private
2   --> $DIR/macro-local-data-key-priv.rs:8:10
3    |
4 LL |     bar::baz.with(|_| ());
5    |          ^^^ private constant
6    |
7 note: the constant `baz` is defined here
8   --> $DIR/macro-local-data-key-priv.rs:4:5
9    |
10 LL |     thread_local!(static baz: f64 = 0.0);
11    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
12    = note: this error originates in the macro `$crate::__thread_local_inner` which comes from the expansion of the macro `thread_local` (in Nightly builds, run with -Z macro-backtrace for more info)
13
14 error: aborting due to previous error
15
16 For more information about this error, try `rustc --explain E0603`.