2025-08-09 20:41:01 +02:00
|
|
|
error: `#[inline]` attribute cannot be used on structs
|
2024-12-17 19:29:14 +08:00
|
|
|
--> $DIR/attr-usage-inline.rs:7:1
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
2019-03-09 15:03:44 +03:00
|
|
|
LL | #[inline]
|
2018-08-08 14:28:26 +02:00
|
|
|
| ^^^^^^^^^
|
2025-08-09 20:41:01 +02:00
|
|
|
|
|
|
|
|
|
= help: `#[inline]` can only be applied to functions
|
2018-08-08 14:28:26 +02:00
|
|
|
|
2021-02-01 23:35:53 +09:00
|
|
|
error[E0518]: attribute should be applied to function or closure
|
2024-12-17 19:29:14 +08:00
|
|
|
--> $DIR/attr-usage-inline.rs:21:1
|
2021-02-01 23:35:53 +09:00
|
|
|
|
|
|
|
|
|
LL | #[inline]
|
|
|
|
|
| ^^^^^^^^^ not a function or closure
|
|
|
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0518`.
|