mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-25 08:13:41 +00:00
38d4ac7cea
Discussion previously happened in https://github.com/rust-lang/rust/pull/43498
29 lines
813 B
Plaintext
29 lines
813 B
Plaintext
error: use of `#[inline]` on trait method `default_inline` which has no body
|
|
--> $DIR/inline_fn_without_body.rs:5:5
|
|
|
|
|
LL | #[inline]
|
|
| _____-^^^^^^^^
|
|
LL | | 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:8:5
|
|
|
|
|
LL | #[inline(always)]
|
|
| _____-^^^^^^^^^^^^^^^^
|
|
LL | | fn always_inline();
|
|
| |____- help: remove
|
|
|
|
error: use of `#[inline]` on trait method `never_inline` which has no body
|
|
--> $DIR/inline_fn_without_body.rs:11:5
|
|
|
|
|
LL | #[inline(never)]
|
|
| _____-^^^^^^^^^^^^^^^
|
|
LL | | fn never_inline();
|
|
| |____- help: remove
|
|
|
|
error: aborting due to 3 previous errors
|
|
|