Add failing test for #3778 write_with_newline

Literal `\n` characters (not a newline) in a `r"raw"` string should not
fail the lint.
This commit is contained in:
phil 2019-02-17 22:32:58 -05:00
parent a71acac1da
commit 2d28d9f02a

View File

@ -31,4 +31,7 @@ fn main() {
write!(&mut v, "\\n"); // #3514
write!(&mut v, "\\\n");
write!(&mut v, "\\\\n");
// Raw strings
write!(&mut v, r"\n"); // #3778
}