fork/rust
git clone https://git.julia.blue/fork/rust
73528e339aa
1.40.0
1error[E0517]: attribute should be applied to struct, enum, or union 2 --> $DIR/attr-usage-repr.rs:3:8 3 | 4LL | #[repr(C)] 5 | ^ 6LL | fn f() {} 7 | --------- not a struct, enum, or union 8 9error[E0517]: attribute should be applied to enum 10 --> $DIR/attr-usage-repr.rs:15:8 11 | 12LL | #[repr(i8)] 13 | ^^ 14LL | struct SInt(f64, f64); 15 | ---------------------- not an enum 16 17error[E0517]: attribute should be applied to struct or union 18 --> $DIR/attr-usage-repr.rs:24:8 19 | 20LL | #[repr(packed)] 21 | ^^^^^^ 22LL | enum EPacked { A, B } 23 | --------------------- not a struct or union 24 25error[E0517]: attribute should be applied to struct 26 --> $DIR/attr-usage-repr.rs:27:8 27 | 28LL | #[repr(simd)] 29 | ^^^^ 30LL | enum ESimd { A, B } 31 | ------------------- not a struct 32 33error: aborting due to 4 previous errors 34 35For more information about this error, try `rustc --explain E0517`.