blob: 3030a2f8f1d62dfcdbc4ad9abbd7885370d999ca (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
error[E0518]: attribute should be applied to function or closure
--> $DIR/attr-usage-inline.rs:6: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`.
|