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