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