fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #69854 - pietroalbini:stable-next, r=Centrilb8cedc00407

1.42.0
607 B16 linesraw
1error[E0603]: constant `baz` is private
2  --> $DIR/macro-local-data-key-priv.rs:8:10
3   |
4LL |     bar::baz.with(|_| ());
5   |          ^^^ this constant is private
6   |
7note: the constant `baz` is defined here
8  --> $DIR/macro-local-data-key-priv.rs:4:5
9   |
10LL |     thread_local!(static baz: f64 = 0.0);
11   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
12   = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)
13
14error: aborting due to previous error
15
16For more information about this error, try `rustc --explain E0603`.