rust/tests/ui/inline_fn_without_body.stderr

29 lines
814 B
Text
Raw Normal View History

error: use of `#[inline]` on trait method `default_inline` which has no body
--> $DIR/inline_fn_without_body.rs:7:5
2018-10-06 18:18:06 +02:00
|
2018-12-27 16:57:55 +01:00
LL | #[inline]
2018-10-06 18:18:06 +02:00
| _____-^^^^^^^^
2018-12-27 16:57:55 +01:00
LL | | fn default_inline();
2018-10-06 18:18:06 +02:00
| |____- help: remove
|
= note: `-D clippy::inline-fn-without-body` implied by `-D warnings`
error: use of `#[inline]` on trait method `always_inline` which has no body
--> $DIR/inline_fn_without_body.rs:10:5
|
2018-12-27 16:57:55 +01:00
LL | #[inline(always)]
2018-12-10 06:27:19 +01:00
| _____-^^^^^^^^^^^^^^^^
2018-12-27 16:57:55 +01:00
LL | | fn always_inline();
2018-12-10 06:27:19 +01:00
| |____- help: remove
error: use of `#[inline]` on trait method `never_inline` which has no body
--> $DIR/inline_fn_without_body.rs:13:5
|
2018-12-27 16:57:55 +01:00
LL | #[inline(never)]
| _____-^^^^^^^^^^^^^^^
2018-12-27 16:57:55 +01:00
LL | | fn never_inline();
| |____- help: remove
error: aborting due to 3 previous errors