From c773226aba7d54fc55fdd6244fb6395a5487f656 Mon Sep 17 00:00:00 2001 From: David Wood Date: Fri, 31 Jul 2020 14:53:44 +0100 Subject: [PATCH] tests: add regression test for #74745 This commit adds a regression test for #74745. While a `ignore-tidy-trailing-lines` header is required, this doesn't stop the test from reproducing, so long as there is no newline at the end of the file. However, adding the header comments made the test fail due to a bug in pprust, fixed in the previous commit. Signed-off-by: David Wood --- src/test/pretty/issue-74745.rs | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 src/test/pretty/issue-74745.rs diff --git a/src/test/pretty/issue-74745.rs b/src/test/pretty/issue-74745.rs new file mode 100644 index 0000000000000..e255cd6caa865 --- /dev/null +++ b/src/test/pretty/issue-74745.rs @@ -0,0 +1,5 @@ +// ignore-tidy-trailing-newlines +// pretty-compare-only + +/* +*/ \ No newline at end of file