diff --git a/rustfmt-core/rustfmt-lib/tests/target/issue-4029.rs b/rustfmt-core/rustfmt-lib/tests/target/issue-4029.rs new file mode 100644 index 00000000000..314d0180588 --- /dev/null +++ b/rustfmt-core/rustfmt-lib/tests/target/issue-4029.rs @@ -0,0 +1,7 @@ +// issue #4029 +#[derive(Debug, Clone, Default Hash)] +struct S; + +// issue #3898 +#[derive(Debug, Clone, Default,, Hash)] +struct T; diff --git a/rustfmt-core/rustfmt-lib/tests/target/issue-4115.rs b/rustfmt-core/rustfmt-lib/tests/target/issue-4115.rs new file mode 100644 index 00000000000..0dd7bdbd04f --- /dev/null +++ b/rustfmt-core/rustfmt-lib/tests/target/issue-4115.rs @@ -0,0 +1,8 @@ +#[derive( + A, + B, + C, + D, + // E, +)] +fn foo() {}