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
652 B
Plaintext
Raw Normal View History

2018-08-08 07:28:26 -05:00
error[E0603]: constant `baz` is private
2018-12-25 09:56:47 -06:00
--> $DIR/macro-local-data-key-priv.rs:8:10
2018-08-08 07:28:26 -05: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 13:28:28 -05:00
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
= 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)
2018-08-08 07:28:26 -05:00
error: aborting due to previous error
For more information about this error, try `rustc --explain E0603`.