blob: 4f99239d21b507671c631ba6fb855db7ebe00ca3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
// 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]
//~| ERROR `repr` attribute cannot be used at crate level
// This is a regression test for https://github.com/rust-lang/rust/issues/143479
#[repr(align(0))]
//~^ ERROR invalid `repr(align)` attribute: not a power of two
//~| ERROR unsupported representation for zero-variant enum [E0084]
enum Foo {}
fn main() {}
|