blob: 258aee76fea7daf2c1b2a5ce5ae8ebb2606b616e [file] [edit]
// Tests a few different invalid repr attributes
// This is a regression test for https://github.com/rust-lang/rust/issues/143522
#![repr]
//~^ ERROR malformed `repr` attribute input [E0539]
// This is a regression test for https://github.com/rust-lang/rust/issues/143479
#[repr(align(0))]
//~^ ERROR not a power of two
//~| ERROR unsupported representation for zero-variant enum [E0084]
enum Foo {}
fn main() {}