1 // run-rustfix
2 #![feature(stmt_expr_attributes)]
3 
4 #![allow(unused, clippy::no_effect, clippy::unnecessary_operation)]
5 #![warn(clippy::deprecated_cfg_attr)]
6 
7 // This doesn't get linted, see known problems
8 #![cfg_attr(rustfmt, rustfmt_skip)]
9 
10 #[rustfmt::skip]
11 trait Foo
12 {
foo( )13 fn foo(
14 );
15 }
16 
skip_on_statements()17 fn skip_on_statements() {
18     #[cfg_attr(rustfmt, rustfmt::skip)]
19     5+3;
20 }
21 
22 #[cfg_attr(rustfmt, rustfmt_skip)]
main()23 fn main() {
24     foo::f();
25 }
26 
27 mod foo {
28     #![cfg_attr(rustfmt, rustfmt_skip)]
29 
f()30     pub fn f() {}
31 }
32