don't amplify errors in format! with bad literals
This commit is contained in:
parent
bfa5f27847
commit
1835cbeb65
7 changed files with 20 additions and 35 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue