]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/trailing-carriage-return-in-string.rs
Merge commit '266e96785ab71834b917bf474f130a6d8fdecd4b' into sync_cg_clif-2022-10-23
[rust.git] / src / test / ui / parser / trailing-carriage-return-in-string.rs
1 // Issue #11669
2
3 // ignore-tidy-cr
4
5 fn main() {
6     // \r\n
7     let ok = "This is \
8  a test";
9     // \r only
10     let bad = "This is \\r a test";
11     //~^ ERROR unknown character escape: `\r`
12     //~| HELP this is an isolated carriage return
13
14 }