diff options
Diffstat (limited to 'src/test/ui/fmt/ifmt-bad-arg.rs')
-rw-r--r-- | src/test/ui/fmt/ifmt-bad-arg.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/test/ui/fmt/ifmt-bad-arg.rs b/src/test/ui/fmt/ifmt-bad-arg.rs index 84f4cc7f4..f00cb05c9 100644 --- a/src/test/ui/fmt/ifmt-bad-arg.rs +++ b/src/test/ui/fmt/ifmt-bad-arg.rs @@ -94,4 +94,6 @@ tenth number: {}", // doesn't exist. println!("{:.*}"); //~^ ERROR 2 positional arguments in format string, but no arguments were given + println!("{:.0$}"); + //~^ ERROR 1 positional argument in format string, but no arguments were given } |