mirror of
https://github.com/rust-lang/rust.git
synced 2025-11-17 03:46:07 +00:00
Update test.
This commit is contained in:
parent
c1c6e3ae7c
commit
14065639ca
@ -95,5 +95,5 @@ tenth number: {}",
|
||||
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
|
||||
//~^ ERROR invalid reference to positional argument 0 (no arguments were given)
|
||||
}
|
||||
|
||||
@ -257,13 +257,11 @@ LL | println!("{:.*}");
|
||||
= note: positional arguments are zero-based
|
||||
= note: for information about formatting flags, visit https://doc.rust-lang.org/std/fmt/index.html
|
||||
|
||||
error: 1 positional argument in format string, but no arguments were given
|
||||
--> $DIR/ifmt-bad-arg.rs:97:15
|
||||
error: invalid reference to positional argument 0 (no arguments were given)
|
||||
--> $DIR/ifmt-bad-arg.rs:97:16
|
||||
|
|
||||
LL | println!("{:.0$}");
|
||||
| ^^---^
|
||||
| |
|
||||
| this precision flag expects an `usize` argument at position 0, but no arguments were given
|
||||
| ^^^^
|
||||
|
|
||||
= note: positional arguments are zero-based
|
||||
= note: for information about formatting flags, visit https://doc.rust-lang.org/std/fmt/index.html
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user