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