summaryrefslogtreecommitdiffstats
path: root/tests/ui/parser/trailing-carriage-return-in-string.rs
blob: 5d3c31944064a974e585c1be0d849adcf5fdd66a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// Issue #11669

// ignore-tidy-cr

fn main() {
    // \r\n
    let ok = "This is \
 a test";
    // \r only
    let bad = "This is \
 a test";
    //~^ ERROR unknown character escape: `\r`
    //~| HELP this is an isolated carriage return

}