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