Files
rust/tests/ui/feature-gates/feature-gate-static_align-thread_local.rs
T
2025-09-26 13:51:09 -04:00

12 lines
330 B
Rust

// The feature gate error may be emitted twice, but only on certain targets
//@ dont-require-annotations: ERROR
//@ dont-check-compiler-stderr
#![crate_type = "lib"]
thread_local! {
//~^ ERROR the `#[rustc_align_static]` attribute is an experimental feature
#[rustc_align_static(16)]
static THREAD_LOCAL: u16 = 0;
}