Merge pull request #2038 from jugglerchris/add_test_skip_attr

Add a test that the skip attribute applies to other attributes.
This commit is contained in:
Nick Cameron 2017-10-07 13:19:15 +08:00 committed by GitHub
commit 6c9ee313a2
2 changed files with 16 additions and 0 deletions

View file

@ -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() {}

View file

@ -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() {}