@@ -16,7 +16,7 @@ error: argument never used
1616 --> $DIR/ifmt-bad-arg.rs:9:20
1717 |
1818LL | format!("{1}", 1);
19- | ----- ^
19+ | ----- ^ argument never used
2020 | |
2121 | formatting specifier missing
2222
@@ -80,56 +80,58 @@ error: multiple unused formatting arguments
8080 --> $DIR/ifmt-bad-arg.rs:32:17
8181 |
8282LL | format!("", 1, 2); //~ ERROR: multiple unused formatting arguments
83- | -- ^ ^
84- | |
83+ | -- ^ ^ argument never used
84+ | | |
85+ | | argument never used
8586 | multiple missing formatting specifiers
8687
8788error: argument never used
8889 --> $DIR/ifmt-bad-arg.rs:33:22
8990 |
9091LL | format!("{}", 1, 2); //~ ERROR: argument never used
91- | ---- ^
92+ | ---- ^ argument never used
9293 | |
9394 | formatting specifier missing
9495
9596error: argument never used
9697 --> $DIR/ifmt-bad-arg.rs:34:20
9798 |
9899LL | format!("{1}", 1, 2); //~ ERROR: argument never used
99- | ----- ^
100+ | ----- ^ argument never used
100101 | |
101102 | formatting specifier missing
102103
103104error: named argument never used
104105 --> $DIR/ifmt-bad-arg.rs:35:26
105106 |
106107LL | format!("{}", 1, foo=2); //~ ERROR: named argument never used
107- | ---- ^
108+ | ---- ^ named argument never used
108109 | |
109110 | formatting specifier missing
110111
111112error: argument never used
112113 --> $DIR/ifmt-bad-arg.rs:36:22
113114 |
114115LL | format!("{foo}", 1, foo=2); //~ ERROR: argument never used
115- | ------- ^
116+ | ------- ^ argument never used
116117 | |
117118 | formatting specifier missing
118119
119120error: named argument never used
120121 --> $DIR/ifmt-bad-arg.rs:37:21
121122 |
122123LL | format!("", foo=2); //~ ERROR: named argument never used
123- | -- ^
124+ | -- ^ named argument never used
124125 | |
125126 | formatting specifier missing
126127
127128error: multiple unused formatting arguments
128129 --> $DIR/ifmt-bad-arg.rs:38:32
129130 |
130131LL | format!("{} {}", 1, 2, foo=1, bar=2); //~ ERROR: multiple unused formatting arguments
131- | ------- ^ ^
132- | |
132+ | ------- ^ ^ named argument never used
133+ | | |
134+ | | named argument never used
133135 | multiple missing formatting specifiers
134136
135137error: duplicate argument named `foo`
@@ -160,7 +162,7 @@ error: named argument never used
160162 --> $DIR/ifmt-bad-arg.rs:45:51
161163 |
162164LL | format!("{valuea} {valueb}", valuea=5, valuec=7);
163- | ------------------- ^
165+ | ------------------- ^ named argument never used
164166 | |
165167 | formatting specifier missing
166168
@@ -194,7 +196,7 @@ error: argument never used
194196 --> $DIR/ifmt-bad-arg.rs:56:27
195197 |
196198LL | format!("foo %s baz", "bar"); //~ ERROR: argument never used
197- | -- ^^^^^
199+ | -- ^^^^^ argument never used
198200 | |
199201 | help: format specifiers use curly braces: `{}`
200202 |
0 commit comments