1
Fork 0

don't amplify errors in format! with bad literals

This commit is contained in:
Aleksey Kladov 2019-05-02 20:56:07 +03:00
parent bfa5f27847
commit 1835cbeb65
7 changed files with 20 additions and 35 deletions

View file

@ -77,7 +77,6 @@ raw { \n
println!("\x7B}\u8 {", 1);
//~^ ERROR incorrect unicode escape sequence
//~| ERROR invalid format string: expected `'}'` but string was terminated
// note: raw strings don't escape `\xFF` and `\u{FF}` sequences
println!(r#"\x7B}\u{8} {"#, 1);