17 lines
656 B
Plaintext
17 lines
656 B
Plaintext
|
error[E0518]: attribute should be applied to function or closure
|
||
|
--> $DIR/issue-31769.rs:12:5
|
||
|
|
|
||
|
LL | #[inline] struct Foo; //~ ERROR attribute should be applied to function or closure
|
||
|
| ^^^^^^^^^ ----------- not a function or closure
|
||
|
|
||
|
error[E0517]: attribute should be applied to struct, enum or union
|
||
|
--> $DIR/issue-31769.rs:13:12
|
||
|
|
|
||
|
LL | #[repr(C)] fn foo() {} //~ ERROR attribute should be applied to struct, enum or union
|
||
|
| ^ ----------- not a struct, enum or union
|
||
|
|
||
|
error: aborting due to 2 previous errors
|
||
|
|
||
|
Some errors occurred: E0517, E0518.
|
||
|
For more information about an error, try `rustc --explain E0517`.
|