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:
commit
6c9ee313a2
2 changed files with 16 additions and 0 deletions
|
@ -63,3 +63,11 @@ fn skip_on_statements() {
|
||||||
#[cfg_attr(rustfmt, rustfmt_skip)]
|
#[cfg_attr(rustfmt, rustfmt_skip)]
|
||||||
foo( a, b , c)
|
foo( a, b , c)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Check that the skip attribute applies to other attributes.
|
||||||
|
#[rustfmt_skip]
|
||||||
|
#[cfg
|
||||||
|
( a , b
|
||||||
|
)]
|
||||||
|
fn
|
||||||
|
main() {}
|
||||||
|
|
|
@ -63,3 +63,11 @@ fn skip_on_statements() {
|
||||||
#[cfg_attr(rustfmt, rustfmt_skip)]
|
#[cfg_attr(rustfmt, rustfmt_skip)]
|
||||||
foo( a, b , c)
|
foo( a, b , c)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Check that the skip attribute applies to other attributes.
|
||||||
|
#[rustfmt_skip]
|
||||||
|
#[cfg
|
||||||
|
( a , b
|
||||||
|
)]
|
||||||
|
fn
|
||||||
|
main() {}
|
||||||
|
|
Loading…
Reference in a new issue