| #![feature(static_align)] | |
| #![crate_type = "lib"] | |
| #[rustc_align_static = 16] //~ ERROR malformed `rustc_align_static` attribute input | |
| static S1: () = (); | |
| #[rustc_align_static("hello")] //~ ERROR invalid alignment value: not an unsuffixed integer | |
| static S2: () = (); | |
| #[rustc_align_static(0)] //~ ERROR invalid alignment value: not a power of two | |
| static S3: () = (); | |
| #[repr(align(16))] //~ ERROR attribute cannot be used on | |
| static S4: () = (); | |
| #[rustc_align_static(16)] //~ ERROR `#[rustc_align_static]` attribute cannot be used on structs | |
| struct Struct1; |