Skip to content

Commit

Permalink
Add a test that the skip attribute applies to other attributes.
Browse files Browse the repository at this point in the history
  • Loading branch information
jugglerchris committed Oct 6, 2017
1 parent 802df67 commit 27e269e
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/source/skip.rs
Expand Up @@ -63,3 +63,11 @@ fn skip_on_statements() {
#[cfg_attr(rustfmt, rustfmt_skip)]
foo( a, b , c)
}

// Check that the skip attribute applies to other attributes.
#[rustfmt_skip]
#[cfg
( a , b
)]
fn
main() {}
8 changes: 8 additions & 0 deletions tests/target/skip.rs
Expand Up @@ -63,3 +63,11 @@ fn skip_on_statements() {
#[cfg_attr(rustfmt, rustfmt_skip)]
foo( a, b , c)
}

// Check that the skip attribute applies to other attributes.
#[rustfmt_skip]
#[cfg
( a , b
)]
fn
main() {}

0 comments on commit 27e269e

Please sign in to comment.