mirror of
https://github.com/rust-lang/rust
synced 2024-11-05 20:45:15 +00:00
14 lines
243 B
Rust
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
|
|
|
|
}
|