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

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

17 lines
670 B
Plaintext
Raw Normal View History

2018-08-08 12:28:26 +00:00
error[E0603]: constant `baz` is private
2018-12-25 15:56:47 +00:00
--> $DIR/macro-local-data-key-priv.rs:8:10
2018-08-08 12:28:26 +00:00
|
LL | bar::baz.with(|_| ());
| ^^^ private constant
|
note: the constant `baz` is defined here
--> $DIR/macro-local-data-key-priv.rs:4:5
|
LL | thread_local!(static baz: f64 = 0.0);
2021-10-14 18:28:28 +00:00
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2023-04-26 19:02:56 +00:00
= note: this error originates in the macro `$crate::thread::local_impl::thread_local_inner` which comes from the expansion of the macro `thread_local` (in Nightly builds, run with -Z macro-backtrace for more info)
2018-08-08 12:28:26 +00:00
error: aborting due to previous error
For more information about this error, try `rustc --explain E0603`.