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