blob: 171bd949e10c6d9863135d4ad0680bbce241c89e [file] [log] [blame]
error[E0518]: attribute should be applied to function or closure
--> $DIR/attr-usage-inline.rs:16:1
|
LL | #[inline] //~ ERROR: attribute should be applied to function or closure
| ^^^^^^^^^
LL | struct S;
| --------- not a function or closure
error: aborting due to previous error
For more information about this error, try `rustc --explain E0518`.