blob: 86eede74eeb9908de212a06683b45ea48865d76e [file] [edit]
error: the `inline` attribute cannot be used on structs
--> $DIR/attr-usage-inline.rs:7:3
|
LL | #[inline]
| ^^^^^^
|
= help: the `inline` attribute can only be applied to functions
error[E0518]: attribute should be applied to function or closure
--> $DIR/attr-usage-inline.rs:25:1
|
LL | #[inline]
| ^^^^^^^^^ not a function or closure
warning: the `inline` attribute cannot be used on struct fields
--> $DIR/attr-usage-inline.rs:11:7
|
LL | #[inline]
| ^^^^^^
|
= help: the `inline` attribute can only be applied to functions
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
= note: requested on the command line with `-W unused-attributes`
warning: the `inline` attribute cannot be used on macro defs
--> $DIR/attr-usage-inline.rs:18:3
|
LL | #[inline]
| ^^^^^^
|
= help: the `inline` attribute can only be applied to functions
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
warning: the `inline` attribute cannot be used on macro defs
--> $DIR/attr-usage-inline.rs:25:3
|
LL | #[inline]
| ^^^^^^
|
= help: the `inline` attribute can only be applied to functions
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
error: aborting due to 2 previous errors; 3 warnings emitted
For more information about this error, try `rustc --explain E0518`.