summaryrefslogtreecommitdiffstats
path: root/src/tools/rustfmt/tests/target/issue-3974.rs
blob: a9f992ebd5c6f3cd240f6612e8a630d808d9abf8 (plain)
1
2
3
4
5
6
7
8
9
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"
        => {}
    }
}