mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-27 23:20:39 +00:00
26 lines
787 B
Text
26 lines
787 B
Text
error: use of `#[inline]` on trait method `default_inline` which has no body
|
|
--> $DIR/inline_fn_without_body.rs:18:5
|
|
|
|
|
18 | #[inline]
|
|
| _____-^^^^^^^^
|
|
19 | | fn default_inline();
|
|
| |____- 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:21:5
|
|
|
|
|
21 | #[inline(always)]fn always_inline();
|
|
| ^^^^^^^^^^^^^^^^^ help: remove
|
|
|
|
error: use of `#[inline]` on trait method `never_inline` which has no body
|
|
--> $DIR/inline_fn_without_body.rs:23:5
|
|
|
|
|
23 | #[inline(never)]
|
|
| _____-^^^^^^^^^^^^^^^
|
|
24 | | fn never_inline();
|
|
| |____- help: remove
|
|
|
|
error: aborting due to 3 previous errors
|
|
|