2018-08-08 14:28:26 +02:00
|
|
|
error[E0518]: attribute should be applied to function or closure
|
2018-12-25 08:56:47 -07:00
|
|
|
--> $DIR/attr-usage-inline.rs:6: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
|
|
|
| ^^^^^^^^^
|
|
|
|
LL | struct S;
|
|
|
|
| --------- not a function or closure
|
|
|
|
|
2021-02-01 23:35:53 +09:00
|
|
|
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
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0518`.
|