]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/trailing-carriage-return-in-string.rs
Auto merge of #56534 - xfix:copied, r=@SimonSapin
[rust.git] / src / test / ui / parser / trailing-carriage-return-in-string.rs
1 // compile-flags: -Z parse-only
2
3 // ignore-tidy-cr
4 // Issue #11669
5
6 fn main() {
7     // \r\n
8     let ok = "This is \
9  a test";
10     // \r only
11     let bad = "This is \\r a test";
12     //~^ ERROR unknown character escape: \r
13     //~^^ HELP this is an isolated carriage return
14
15 }