1error: multiple unused formatting arguments
2  --> $DIR/format-foreign.rs:2:30
3   |
4LL |     println!("%.*3$s %s!\n", "Hello,", "World", 4);
5   |              --------------  ^^^^^^^^  ^^^^^^^  ^ argument never used
6   |              |               |         |
7   |              |               |         argument never used
8   |              |               argument never used
9   |              multiple missing formatting specifiers
10   |
11   = note: printf formatting not supported; see the documentation for `std::fmt`
12help: format specifiers use curly braces
13   |
14LL |     println!("{:.2$} {}!\n", "Hello,", "World", 4);
15   |               ~~~~~~ ~~
16
17error: argument never used
18  --> $DIR/format-foreign.rs:3:29
19   |
20LL |     println!("%1$*2$.*3$f", 123.456);
21   |               -----------   ^^^^^^^ argument never used
22   |               |
23   |               help: format specifiers use curly braces: `{0:1$.2$}`
24   |
25   = note: printf formatting not supported; see the documentation for `std::fmt`
26
27error: multiple unused formatting arguments
28  --> $DIR/format-foreign.rs:6:7
29   |
30LL |       println!(r###"%.*3$s
31   |  ______________-
32LL | |         %s!\n
33LL | | "###, "Hello,", "World", 4);
34   | |    -  ^^^^^^^^  ^^^^^^^  ^ argument never used
35   | |    |  |         |
36   | |    |  |         argument never used
37   | |____|  argument never used
38   |      multiple missing formatting specifiers
39   |
40   = note: printf formatting not supported; see the documentation for `std::fmt`
41help: format specifiers use curly braces
42   |
43LL ~     println!(r###"{:.2$}
44LL ~         {}!\n
45   |
46
47error: argument never used
48  --> $DIR/format-foreign.rs:12:30
49   |
50LL |     println!("{} %f", "one", 2.0);
51   |              -------         ^^^ argument never used
52   |              |
53   |              formatting specifier missing
54
55error: named argument never used
56  --> $DIR/format-foreign.rs:14:39
57   |
58LL |     println!("Hi there, $NAME.", NAME="Tim");
59   |                         -----         ^^^^^ named argument never used
60   |                         |
61   |                         help: format specifiers use curly braces: `{NAME}`
62   |
63   = note: shell formatting not supported; see the documentation for `std::fmt`
64
65error: multiple unused formatting arguments
66  --> $DIR/format-foreign.rs:15:32
67   |
68LL |     println!("$1 $0 $$ $NAME", 1, 2, NAME=3);
69   |              ----------------  ^  ^       ^ named argument never used
70   |              |                 |  |
71   |              |                 |  argument never used
72   |              |                 argument never used
73   |              multiple missing formatting specifiers
74   |
75   = note: shell formatting not supported; see the documentation for `std::fmt`
76help: format specifiers use curly braces
77   |
78LL |     println!("{1} {0} $$ {NAME}", 1, 2, NAME=3);
79   |               ~~~ ~~~    ~~~~~~
80
81error: aborting due to 6 previous errors
82
83