Skip to content

Commit

Permalink
Add a test for rust-lang#3974
Browse files Browse the repository at this point in the history
  • Loading branch information
topecongiro committed Dec 21, 2019
1 parent 5b58b1e commit 16fdb39
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/target/issue-3974.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
fn emulate_foreign_item() {
match link_name {
// A comment here will duplicate the attribute
#[rustfmt::skip]
| "pthread_mutexattr_init"
| "pthread_mutexattr_settype"
| "pthread_mutex_init"
=> {}
}
}

0 comments on commit 16fdb39

Please sign in to comment.