]> git.lizzy.rs Git - rust.git/blob - tests/ui/inline_fn_without_body.rs
Adapt the *.stderr files of the ui-tests to the tool_lints
[rust.git] / tests / ui / inline_fn_without_body.rs
1 #![feature(tool_lints)]
2
3
4 #![warn(clippy::inline_fn_without_body)]
5 #![allow(clippy::inline_always)]
6
7 trait Foo {
8     #[inline]
9     fn default_inline();
10
11     #[inline(always)]fn always_inline();
12
13     #[inline(never)]
14     fn never_inline();
15
16     #[inline]
17     fn has_body() {
18     }
19 }
20
21 fn main() {
22 }