forked from rust-lang/rust
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix ICE due to carriage return w/ multibyte char
Based off of kfitch@972560b
- Loading branch information
1 parent
45a83e9
commit ed9df28
Showing
3 changed files
with
15 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 | ||
|