fork/rust
git clone https://git.julia.blue/fork/rust
49cae55760d
1.44.0
1error[E0518]: attribute should be applied to function or closure 2 --> $DIR/issue-31769.rs:2:5 3 | 4LL | #[inline] struct Foo; 5 | ^^^^^^^^^ ----------- not a function or closure 6 7error[E0517]: attribute should be applied to struct, enum, or union 8 --> $DIR/issue-31769.rs:3:12 9 | 10LL | #[repr(C)] fn foo() {} 11 | ^ ----------- not a struct, enum, or union 12 13error: aborting due to 2 previous errors 14 15Some errors have detailed explanations: E0517, E0518. 16For more information about an error, try `rustc --explain E0517`.