2018-01-17 03:41:24 -06:00
|
|
|
error: use of `#[inline]` on trait method `default_inline` which has no body
|
2024-02-27 08:25:18 -06:00
|
|
|
--> tests/ui/inline_fn_without_body.rs:5:5
|
2018-10-06 11:18:06 -05:00
|
|
|
|
|
2018-12-27 09:57:55 -06:00
|
|
|
LL | #[inline]
|
2018-10-06 11:18:06 -05:00
|
|
|
| _____-^^^^^^^^
|
2018-12-27 09:57:55 -06:00
|
|
|
LL | | fn default_inline();
|
2018-10-06 11:18:06 -05:00
|
|
|
| |____- help: remove
|
|
|
|
|
|
|
|
|
= note: `-D clippy::inline-fn-without-body` implied by `-D warnings`
|
2023-08-01 07:02:21 -05:00
|
|
|
= help: to override `-D warnings` add `#[allow(clippy::inline_fn_without_body)]`
|
2018-01-17 03:41:24 -06:00
|
|
|
|
|
|
|
error: use of `#[inline]` on trait method `always_inline` which has no body
|
2024-02-27 08:25:18 -06:00
|
|
|
--> tests/ui/inline_fn_without_body.rs:8:5
|
2018-01-17 03:41:24 -06:00
|
|
|
|
|
2018-12-27 09:57:55 -06:00
|
|
|
LL | #[inline(always)]
|
2018-12-09 23:27:19 -06:00
|
|
|
| _____-^^^^^^^^^^^^^^^^
|
2018-12-27 09:57:55 -06:00
|
|
|
LL | | fn always_inline();
|
2018-12-09 23:27:19 -06:00
|
|
|
| |____- help: remove
|
2018-01-17 13:08:03 -06:00
|
|
|
|
|
|
|
error: use of `#[inline]` on trait method `never_inline` which has no body
|
2024-02-27 08:25:18 -06:00
|
|
|
--> tests/ui/inline_fn_without_body.rs:11:5
|
2018-01-17 13:08:03 -06:00
|
|
|
|
|
2018-12-27 09:57:55 -06:00
|
|
|
LL | #[inline(never)]
|
2018-01-17 13:08:03 -06:00
|
|
|
| _____-^^^^^^^^^^^^^^^
|
2018-12-27 09:57:55 -06:00
|
|
|
LL | | fn never_inline();
|
2018-01-17 13:08:03 -06:00
|
|
|
| |____- help: remove
|
|
|
|
|
|
|
|
error: aborting due to 3 previous errors
|
2018-01-17 03:41:24 -06:00
|
|
|
|