summaryrefslogtreecommitdiffstats
path: root/src/tools/rustfmt/tests/target/issue-4984/multi_line_derive.rs
blob: 5fbd9784adc97c5f0841c556f5fa695c218afebb (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
#[derive(
    /* ---------- Some really important comment that just had to go inside the derive --------- */
    Debug,
    Clone,
    Eq,
    PartialEq,
)]
struct Foo {
    a: i32,
    b: T,
}

#[derive(
    /*
        Some really important comment that just had to go inside the derive.
        Also had to be put over multiple lines
    */
    Debug,
    Clone,
    Eq,
    PartialEq,
)]
struct Bar {
    a: i32,
    b: T,
}