Fix ICE due to carriage return w/ multibyte char

Based off of
972560b83f
This commit is contained in:
kadmin 2020-08-27 02:18:38 +00:00
parent 45a83e97cc
commit ed9df28655
3 changed files with 15 additions and 1 deletions

View file

@ -0,0 +1,6 @@
// Test that multi-byte unicode characters with missing parameters do not ICE.
fn main() {
println!("\r¡{}")
//~^ ERROR 1 positional argument in format string
}

View file

@ -0,0 +1,8 @@
error: 1 positional argument in format string, but no arguments were given
--> $DIR/issue-70381.rs:4:16
|
LL | println!("\r¡{}")
| ^^
error: aborting due to previous error