summaryrefslogtreecommitdiffstats
path: root/src/tools/rustfmt/tests/source/issue-4984/multi_line_derive.rs
blob: 73921dd173547711d0966743203ae07b7203c87e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#[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,
}