]> git.lizzy.rs Git - rust.git/blob - src/test/ui/fmt/issue-89173.stderr
Rollup merge of #95649 - ouz-a:mir-opt, r=oli-obk
[rust.git] / src / test / ui / fmt / issue-89173.stderr
1 error: multiple unused formatting arguments
2   --> $DIR/issue-89173.rs:7:20
3    |
4 LL |     print!("%0*x", width, num);
5    |            ------  ^^^^^  ^^^ argument never used
6    |            |       |
7    |            |       argument never used
8    |            multiple missing formatting specifiers
9    |
10 note: format specifiers use curly braces, and you have to use a positional or named parameter for the width
11   --> $DIR/issue-89173.rs:7:13
12    |
13 LL |     print!("%0*x", width, num);
14    |             ^^^^
15    = note: printf formatting not supported; see the documentation for `std::fmt`
16
17 error: aborting due to previous error
18