mirror of
https://github.com/rust-lang/rust.git
synced 2025-10-01 08:53:29 +00:00
18 lines
462 B
Plaintext
18 lines
462 B
Plaintext
error: `#[inline]` attribute cannot be used on structs
|
|
--> $DIR/attr-usage-inline.rs:7:1
|
|
|
|
|
LL | #[inline]
|
|
| ^^^^^^^^^
|
|
|
|
|
= help: `#[inline]` can only be applied to functions
|
|
|
|
error[E0518]: attribute should be applied to function or closure
|
|
--> $DIR/attr-usage-inline.rs:21: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`.
|