]> git.lizzy.rs Git - rust.git/blob - tests/ui/inline_fn_without_body.stderr
Merge pull request #2984 from flip1995/single_char_pattern
[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:8:5
3   |
4 8 |       #[inline]
5   |  _____-^^^^^^^^
6 9 | |     fn default_inline();
7   | |____- help: remove
8   |
9   = note: `-D 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:11:5
13    |
14 11 |     #[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:13:5
19    |
20 13 |       #[inline(never)]
21    |  _____-^^^^^^^^^^^^^^^
22 14 | |     fn never_inline();
23    | |____- help: remove
24
25 error: aborting due to 3 previous errors
26