From e4de4b38928164a01cb86815083a2523378b913b Mon Sep 17 00:00:00 2001 From: "Adam H. Leventhal" Date: Tue, 21 Apr 2020 22:54:08 -0700 Subject: [PATCH] tests --- rustfmt-core/rustfmt-lib/tests/target/issue-4029.rs | 7 +++++++ rustfmt-core/rustfmt-lib/tests/target/issue-4115.rs | 8 ++++++++ 2 files changed, 15 insertions(+) create mode 100644 rustfmt-core/rustfmt-lib/tests/target/issue-4029.rs create mode 100644 rustfmt-core/rustfmt-lib/tests/target/issue-4115.rs 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() {}