Add a test that the skip attribute applies to other attributes.

This commit is contained in:
Chris Emerson 2017-10-06 22:57:59 +01:00
parent 802df67c2f
commit 27e269ec5b
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() {}