blob: 1725de213e631710f118f05436f4f031e73f58a5 [file]
error: the `inline` attribute cannot be used on structs
--> $DIR/attr-usage-inline.rs:7:3
|
LL | #[inline]
| ^^^^^^
LL | struct S;
|
= 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]
| ^^^^^^
...
LL | i: u8,
|
= 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]
| ^^^^^^
...
LL | macro_rules! m_e {
|
= 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]
| ^^^^^^
...
LL | macro_rules! m {
|
= 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`.