Error code E0534
Note: this error code is no longer emitted by the compiler
This is because it was too specific to the inline
attribute.
Similar diagnostics occur for other attributes too.
The example here will now emit E0805
The inline
attribute was malformed.
Erroneous code example:
#[inline()] // error: expected one argument
pub fn something() {}
fn main() {}
ⓘ
The parenthesized inline
attribute requires the parameter to be specified:
or:
Alternatively, a paren-less version of the attribute may be used to hint the compiler about inlining opportunity:
For more information see the inline
attribute section
of the Reference.