summaryrefslogtreecommitdiffstats
path: root/src/tools/rustfmt/tests/target/issue-3665/lib.rs
blob: c313f320368a17f786e04fae2d2e99189a8a6e07 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#![rustfmt::skip::attributes(skip_mod_attr)]

mod sub_mod;

#[rustfmt::skip::attributes(other, skip_attr)]
fn main() {
    #[other(should,
skip,
        this,                               format)]
    struct S {}

    #[skip_attr(should, skip,
this,                               format,too)]
    fn doesnt_mater() {}

    #[skip_mod_attr(should, skip,
this,                               format,
         enerywhere)]
    fn more() {}

    #[not_skip(not, skip, me)]
    struct B {}
}

#[other(should, not, skip, this, format, here)]
fn foo() {}

#[skip_mod_attr(should, skip,
this,                               format,in,                    master,
                    and, sub, module)]
fn bar() {}