1 // Regression test for #89173: Make sure a helpful note is issued for
2 // printf-style format strings using `*` to specify the width.
7 print!("%0*x", width, num);
8 //~^ ERROR: multiple unused formatting arguments
9 //~| NOTE: multiple missing formatting specifiers
10 //~| NOTE: argument never used
11 //~| NOTE: argument never used
12 //~| NOTE: format specifiers use curly braces, and you have to use a positional or named parameter for the width
13 //~| NOTE: printf formatting is not supported