2019-04-10 16:40:12 -07:00
|
|
|
error[E0658]: `cfg(target_thread_local)` is experimental and subject to change
|
2018-12-25 08:56:47 -07:00
|
|
|
--> $DIR/feature-gate-cfg-target-thread-local.rs:9:16
|
2017-12-06 09:27:47 +01:00
|
|
|
|
|
2018-02-23 03:42:32 +03:00
|
|
|
LL | #[cfg_attr(target_thread_local, thread_local)]
|
2017-12-06 09:27:47 +01:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
2020-02-07 13:07:02 +01:00
|
|
|
= note: see issue #29594 <https://github.com/rust-lang/rust/issues/29594> for more information
|
2019-07-09 11:32:08 +02:00
|
|
|
= help: add `#![feature(cfg_target_thread_local)]` to the crate attributes to enable
|
2024-01-10 01:39:02 -05:00
|
|
|
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
|
2017-12-06 09:27:47 +01:00
|
|
|
|
2024-02-01 22:45:00 +00:00
|
|
|
error[E0133]: use of extern static is unsafe and requires unsafe function or block
|
|
|
|
--> $DIR/feature-gate-cfg-target-thread-local.rs:15:16
|
|
|
|
|
|
|
|
|
LL | assert_eq!(FOO, 3);
|
|
|
|
| ^^^ use of extern static
|
|
|
|
|
|
|
|
|
= note: extern statics are not controlled by the Rust type system: invalid data, aliasing violations or data races will cause undefined behavior
|
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
2017-12-06 09:27:47 +01:00
|
|
|
|
2024-02-01 22:45:00 +00:00
|
|
|
Some errors have detailed explanations: E0133, E0658.
|
|
|
|
For more information about an error, try `rustc --explain E0133`.
|