mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 15:23:46 +00:00
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:
parent
a71acac1da
commit
2d28d9f02a
@ -31,4 +31,7 @@ fn main() {
|
|||||||
write!(&mut v, "\\n"); // #3514
|
write!(&mut v, "\\n"); // #3514
|
||||||
write!(&mut v, "\\\n");
|
write!(&mut v, "\\\n");
|
||||||
write!(&mut v, "\\\\n");
|
write!(&mut v, "\\\\n");
|
||||||
|
|
||||||
|
// Raw strings
|
||||||
|
write!(&mut v, r"\n"); // #3778
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user