| The `inline` attribute was malformed. |
| |
| Erroneous code example: |
| |
| ```ignore (compile_fail not working here; see Issue #43707) |
| #[inline()] // error: expected one argument |
| pub fn something() {} |
| |
| fn main() {} |
| ``` |
| |
| The parenthesized `inline` attribute requires the parameter to be specified: |
| |
| ``` |
| #[inline(always)] |
| fn something() {} |
| ``` |
| |
| or: |
| |
| ``` |
| #[inline(never)] |
| fn something() {} |
| ``` |
| |
| Alternatively, a paren-less version of the attribute may be used to hint the |
| compiler about inlining opportunity: |
| |
| ``` |
| #[inline] |
| fn something() {} |
| ``` |
| |
| For more information about the inline attribute, read: |
| https://doc.rust-lang.org/reference.html#inline-attributes |