]> git.lizzy.rs Git - rust.git/blob - src/tools/rustfmt/tests/target/issue-4984/multi_line_derive.rs
Rollup merge of #89876 - AlexApps99:const_ops, r=oli-obk
[rust.git] / src / tools / rustfmt / tests / target / issue-4984 / multi_line_derive.rs
1 #[derive(
2     /* ---------- Some really important comment that just had to go inside the derive --------- */
3     Debug,
4     Clone,
5     Eq,
6     PartialEq,
7 )]
8 struct Foo {
9     a: i32,
10     b: T,
11 }
12
13 #[derive(
14     /*
15         Some really important comment that just had to go inside the derive.
16         Also had to be put over multiple lines
17     */
18     Debug,
19     Clone,
20     Eq,
21     PartialEq,
22 )]
23 struct Bar {
24     a: i32,
25     b: T,
26 }