Fix compiling empty fmt! strings
This commit is contained in:
parent
dc4560dc26
commit
df626ea137
2 changed files with 8 additions and 0 deletions
|
|
@ -58,6 +58,9 @@ fn part1() {
|
|||
test(fmt!("%x", 0xffffffff_u), ~"ffffffff");
|
||||
test(fmt!("%o", 0xffffffff_u), ~"37777777777");
|
||||
test(fmt!("%t", 0xffffffff_u), ~"11111111111111111111111111111111");
|
||||
|
||||
// Don't result in a compilation error
|
||||
test(fmt!(""), ~"");
|
||||
}
|
||||
fn part2() {
|
||||
// Widths
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue