]> git.lizzy.rs Git - rust.git/blob - tests/ui/cfg_attr_rustfmt.rs
Auto merge of #3645 - phansch:remove_copyright_headers, r=oli-obk
[rust.git] / tests / ui / cfg_attr_rustfmt.rs
1 #![feature(stmt_expr_attributes)]
2
3 #![warn(clippy::deprecated_cfg_attr)]
4
5 // This doesn't get linted, see known problems
6 #![cfg_attr(rustfmt, rustfmt_skip)]
7
8 #[rustfmt::skip]
9 trait Foo
10 {
11 fn foo(
12 );
13 }
14
15 fn skip_on_statements() {
16     #[cfg_attr(rustfmt, rustfmt::skip)]
17     5+3;
18 }
19
20 #[cfg_attr(rustfmt, rustfmt_skip)]
21 fn main() {
22     foo::f();
23 }
24
25 mod foo {
26     #![cfg_attr(rustfmt, rustfmt_skip)]
27
28     pub fn f() {}
29 }