summaryrefslogtreecommitdiffstats
path: root/src/tools/rustfmt/tests/source/issue-3665/lib.rs
blob: e049fbc5680e31c889e584fe1b12436ded45fc61 (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
32
33
#![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() {}