]> git.lizzy.rs Git - rust.git/blob - tests/target/skip.rs
Fix bug in identifying comments
[rust.git] / tests / target / skip.rs
1 // Test the skip attribute works
2
3 #[rustfmt_skip]
4 fn foo() { badly; formatted; stuff
5 ; }
6
7 #[rustfmt_skip]
8 trait Foo
9 {
10 fn foo(
11 );
12 }
13
14 impl LateLintPass for UsedUnderscoreBinding {
15     #[cfg_attr(rustfmt, rustfmt_skip)]
16     fn check_expr() { // comment
17     }
18 }