Files
rust/tests/ui/invalid/invalid-inline.stderr

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

44 lines
1.2 KiB
Plaintext
Raw Normal View History

error[E0805]: malformed `inline` attribute input
2022-09-16 22:49:43 +08:00
--> $DIR/invalid-inline.rs:3:1
2018-08-08 14:28:26 +02:00
|
2019-03-09 15:03:44 +03:00
LL | #[inline(please,no)]
| ^^^^^^^^-----------^
| |
| expected a single argument here
|
= note: for more information, visit <https://doc.rust-lang.org/reference/attributes/codegen.html#the-inline-attribute>
help: try changing it to one of the following valid forms of the attribute
|
LL - #[inline(please,no)]
LL + #[inline(always)]
|
LL - #[inline(please,no)]
LL + #[inline(never)]
|
LL - #[inline(please,no)]
LL + #[inline]
|
2018-08-08 14:28:26 +02:00
error[E0805]: malformed `inline` attribute input
2022-09-16 22:49:43 +08:00
--> $DIR/invalid-inline.rs:7:1
2018-08-08 14:28:26 +02:00
|
2019-03-09 15:03:44 +03:00
LL | #[inline()]
| ^^^^^^^^--^
| |
| expected a single argument here
|
= note: for more information, visit <https://doc.rust-lang.org/reference/attributes/codegen.html#the-inline-attribute>
help: try changing it to one of the following valid forms of the attribute
|
LL | #[inline(always)]
| ++++++
LL | #[inline(never)]
| +++++
LL - #[inline()]
LL + #[inline]
|
2018-08-08 14:28:26 +02:00
2022-09-16 22:49:43 +08:00
error: aborting due to 2 previous errors
2018-08-08 14:28:26 +02:00
For more information about this error, try `rustc --explain E0805`.