fork/rust
git clone https://git.julia.blue/fork/rust
4560ea788cb
1.39.0
1error[E0517]: attribute should be applied to struct, enum, or union 2 --> $DIR/E0517.rs:1:8 3 | 4LL | #[repr(C)] 5 | ^ 6LL | type Foo = u8; 7 | -------------- not a struct, enum, or union 8 9error[E0517]: attribute should be applied to struct or union 10 --> $DIR/E0517.rs:4:8 11 | 12LL | #[repr(packed)] 13 | ^^^^^^ 14LL | enum Foo2 {Bar, Baz} 15 | -------------------- not a struct or union 16 17error[E0517]: attribute should be applied to enum 18 --> $DIR/E0517.rs:7:8 19 | 20LL | #[repr(u8)] 21 | ^^ 22LL | struct Foo3 {bar: bool, baz: bool} 23 | ---------------------------------- not an enum 24 25error[E0517]: attribute should be applied to struct, enum, or union 26 --> $DIR/E0517.rs:10:8 27 | 28LL | #[repr(C)] 29 | ^ 30LL | / impl Foo3 { 31LL | | } 32 | |_- not a struct, enum, or union 33 34error: aborting due to 4 previous errors 35 36For more information about this error, try `rustc --explain E0517`.