rust/tests/ui/parser/trailing-carriage-return-in-string.rs
2023-01-11 09:32:08 +00:00

14 lines
243 B
Rust

// 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
}