rust/tests/ui/attributes/invalid-repr.rs
Folkert de Vries 1fdf2b5620
add #[align] attribute
Right now it's used for functions with `fn_align`, in the future it will
get more uses (statics, struct fields, etc.)
2025-06-18 12:37:08 +02:00

6 lines
120 B
Rust

#[repr(align(16))]
//~^ ERROR attribute should be applied to a struct, enum, or union
pub type Foo = i32;
fn main() {}