2018-02-07 21:35:35 -06:00
|
|
|
error[E0518]: attribute should be applied to function
|
|
|
|
--> $DIR/E0518.rs:11:1
|
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | #[inline(always)] //~ ERROR: E0518
|
2018-02-07 21:35:35 -06:00
|
|
|
| ^^^^^^^^^^^^^^^^^
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | struct Foo;
|
2018-02-07 21:35:35 -06:00
|
|
|
| ----------- not a function
|
|
|
|
|
|
|
|
error[E0518]: attribute should be applied to function
|
|
|
|
--> $DIR/E0518.rs:14:1
|
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | #[inline(never)] //~ ERROR: E0518
|
2018-02-07 21:35:35 -06:00
|
|
|
| ^^^^^^^^^^^^^^^^
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | / impl Foo {
|
|
|
|
LL | | }
|
2018-02-07 21:35:35 -06:00
|
|
|
| |_- not a function
|
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
|
2018-03-03 08:59:40 -06:00
|
|
|
For more information about this error, try `rustc --explain E0518`.
|