Skip to content

Commit

Permalink
tests: add regression test for rust-lang#74745
Browse files Browse the repository at this point in the history
This commit adds a regression test for rust-lang#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 <[email protected]>
  • Loading branch information
davidtwco committed Aug 2, 2020
1 parent 86f80d3 commit c773226
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/test/pretty/issue-74745.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
// ignore-tidy-trailing-newlines
// pretty-compare-only

/*
*/

0 comments on commit c773226

Please sign in to comment.