Files
rust/tests/ui/attributes/inline/attr-usage-inline.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

18 lines
462 B
Plaintext
Raw Normal View History

error: `#[inline]` attribute cannot be used on structs
--> $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
| ^^^^^^^^^
|
= help: `#[inline]` can only be applied to functions
2018-08-08 14:28:26 +02:00
error[E0518]: attribute should be applied to function or closure
--> $DIR/attr-usage-inline.rs:21: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`.