rust/src/test/ui/error-codes/E0518.stderr

21 lines
518 B
Plaintext
Raw Normal View History

2018-02-07 19:35:35 -08:00
error[E0518]: attribute should be applied to function
--> $DIR/E0518.rs:11:1
|
2018-02-23 03:42:32 +03:00
LL | #[inline(always)] //~ ERROR: E0518
2018-02-07 19:35:35 -08:00
| ^^^^^^^^^^^^^^^^^
2018-02-23 03:42:32 +03:00
LL | struct Foo;
2018-02-07 19:35:35 -08:00
| ----------- not a function
error[E0518]: attribute should be applied to function
--> $DIR/E0518.rs:14:1
|
2018-02-23 03:42:32 +03:00
LL | #[inline(never)] //~ ERROR: E0518
2018-02-07 19:35:35 -08:00
| ^^^^^^^^^^^^^^^^
2018-02-23 03:42:32 +03:00
LL | / impl Foo {
LL | | }
2018-02-07 19:35:35 -08:00
| |_- not a function
error: aborting due to 2 previous errors
2018-02-19 21:40:25 +01:00
If you want more information on this error, try using "rustc --explain E0518"