]> git.lizzy.rs Git - rust.git/blob - tests/ui/fmt/format-args-capture-issue-93378.stderr
Rollup merge of #105784 - yanns:update_stdarch, r=Amanieu
[rust.git] / tests / ui / fmt / format-args-capture-issue-93378.stderr
1 error: 3 positional arguments in format string, but there is 1 argument
2   --> $DIR/format-args-capture-issue-93378.rs:5:23
3    |
4 LL |     println!("{a} {b} {} {} {c} {}", c = "c");
5    |                       ^^ ^^     ^^       ---
6
7 error: 1 positional argument in format string, but no arguments were given
8   --> $DIR/format-args-capture-issue-93378.rs:9:26
9    |
10 LL |     println!("{a:.n$} {b:.*}");
11    |                          ^^ this precision flag adds an extra required argument at position 0, which is why there is 1 argument expected
12    |
13    = note: positional arguments are zero-based
14    = note: for information about formatting flags, visit https://doc.rust-lang.org/std/fmt/index.html
15
16 error: aborting due to 2 previous errors
17