mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 23:34:48 +00:00
18 lines
467 B
Plaintext
18 lines
467 B
Plaintext
error[E0518]: attribute should be applied to function or closure
|
|
--> $DIR/attr-usage-inline.rs:6:1
|
|
|
|
|
LL | #[inline]
|
|
| ^^^^^^^^^
|
|
LL | struct S;
|
|
| --------- not a function or closure
|
|
|
|
error[E0518]: attribute should be applied to function or closure
|
|
--> $DIR/attr-usage-inline.rs:20:1
|
|
|
|
|
LL | #[inline]
|
|
| ^^^^^^^^^ not a function or closure
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
For more information about this error, try `rustc --explain E0518`.
|