]> git.lizzy.rs Git - rust.git/blob - tests/ui/inline_fn_without_body.stderr
Merge pull request #3285 from devonhollowood/pedantic-dogfood-items-after-statements
[rust.git] / tests / ui / inline_fn_without_body.stderr
1 error: use of `#[inline]` on trait method `default_inline` which has no body
2   --> $DIR/inline_fn_without_body.rs:18:5
3    |
4 18 |       #[inline]
5    |  _____-^^^^^^^^
6 19 | |     fn default_inline();
7    | |____- help: remove
8    |
9    = note: `-D clippy::inline-fn-without-body` implied by `-D warnings`
10
11 error: use of `#[inline]` on trait method `always_inline` which has no body
12   --> $DIR/inline_fn_without_body.rs:21:5
13    |
14 21 |     #[inline(always)]fn always_inline();
15    |     ^^^^^^^^^^^^^^^^^ help: remove
16
17 error: use of `#[inline]` on trait method `never_inline` which has no body
18   --> $DIR/inline_fn_without_body.rs:23:5
19    |
20 23 |       #[inline(never)]
21    |  _____-^^^^^^^^^^^^^^^
22 24 | |     fn never_inline();
23    | |____- help: remove
24
25 error: aborting due to 3 previous errors
26