1 warning: named argument `a` is not used by name
2 --> $DIR/issue-99265.rs:5:24
4 LL | println!("{b} {}", a=1, b=2);
5 | -- ^ this named argument is referred to by position in formatting string
7 | this formatting argument uses named argument `a` by position
9 = note: `#[warn(named_arguments_used_positionally)]` on by default
10 help: use the named argument by name to avoid ambiguity
12 LL | println!("{b} {a}", a=1, b=2);
15 warning: named argument `a` is not used by name
16 --> $DIR/issue-99265.rs:9:35
18 LL | println!("{} {} {} {} {}", 0, a=1, b=2, c=3, d=4);
19 | -- ^ this named argument is referred to by position in formatting string
21 | this formatting argument uses named argument `a` by position
23 help: use the named argument by name to avoid ambiguity
25 LL | println!("{} {a} {} {} {}", 0, a=1, b=2, c=3, d=4);
28 warning: named argument `b` is not used by name
29 --> $DIR/issue-99265.rs:9:40
31 LL | println!("{} {} {} {} {}", 0, a=1, b=2, c=3, d=4);
32 | -- ^ this named argument is referred to by position in formatting string
34 | this formatting argument uses named argument `b` by position
36 help: use the named argument by name to avoid ambiguity
38 LL | println!("{} {} {b} {} {}", 0, a=1, b=2, c=3, d=4);
41 warning: named argument `c` is not used by name
42 --> $DIR/issue-99265.rs:9:45
44 LL | println!("{} {} {} {} {}", 0, a=1, b=2, c=3, d=4);
45 | -- ^ this named argument is referred to by position in formatting string
47 | this formatting argument uses named argument `c` by position
49 help: use the named argument by name to avoid ambiguity
51 LL | println!("{} {} {} {c} {}", 0, a=1, b=2, c=3, d=4);
54 warning: named argument `d` is not used by name
55 --> $DIR/issue-99265.rs:9:50
57 LL | println!("{} {} {} {} {}", 0, a=1, b=2, c=3, d=4);
58 | -- ^ this named argument is referred to by position in formatting string
60 | this formatting argument uses named argument `d` by position
62 help: use the named argument by name to avoid ambiguity
64 LL | println!("{} {} {} {} {d}", 0, a=1, b=2, c=3, d=4);
67 warning: named argument `width` is not used by name
68 --> $DIR/issue-99265.rs:19:35
70 LL | println!("Hello {:1$}!", "x", width = 5);
71 | -- ^^^^^ this named argument is referred to by position in formatting string
73 | this formatting argument uses named argument `width` by position
75 help: use the named argument by name to avoid ambiguity
77 LL | println!("Hello {:width$}!", "x", width = 5);
80 warning: named argument `f` is not used by name
81 --> $DIR/issue-99265.rs:23:33
83 LL | println!("Hello {:1$.2$}!", f = 0.02f32, width = 5, precision = 2);
84 | -------- ^ this named argument is referred to by position in formatting string
86 | this formatting argument uses named argument `f` by position
88 help: use the named argument by name to avoid ambiguity
90 LL | println!("Hello {f:1$.2$}!", f = 0.02f32, width = 5, precision = 2);
93 warning: named argument `precision` is not used by name
94 --> $DIR/issue-99265.rs:23:57
96 LL | println!("Hello {:1$.2$}!", f = 0.02f32, width = 5, precision = 2);
97 | -- ^^^^^^^^^ this named argument is referred to by position in formatting string
99 | this formatting argument uses named argument `precision` by position
101 help: use the named argument by name to avoid ambiguity
103 LL | println!("Hello {:1$.precision$}!", f = 0.02f32, width = 5, precision = 2);
106 warning: named argument `width` is not used by name
107 --> $DIR/issue-99265.rs:23:46
109 LL | println!("Hello {:1$.2$}!", f = 0.02f32, width = 5, precision = 2);
110 | -- ^^^^^ this named argument is referred to by position in formatting string
112 | this formatting argument uses named argument `width` by position
114 help: use the named argument by name to avoid ambiguity
116 LL | println!("Hello {:width$.2$}!", f = 0.02f32, width = 5, precision = 2);
119 warning: named argument `f` is not used by name
120 --> $DIR/issue-99265.rs:31:34
122 LL | println!("Hello {0:1$.2$}!", f = 0.02f32, width = 5, precision = 2);
123 | --------- ^ this named argument is referred to by position in formatting string
125 | this formatting argument uses named argument `f` by position
127 help: use the named argument by name to avoid ambiguity
129 LL | println!("Hello {f:1$.2$}!", f = 0.02f32, width = 5, precision = 2);
132 warning: named argument `precision` is not used by name
133 --> $DIR/issue-99265.rs:31:58
135 LL | println!("Hello {0:1$.2$}!", f = 0.02f32, width = 5, precision = 2);
136 | -- ^^^^^^^^^ this named argument is referred to by position in formatting string
138 | this formatting argument uses named argument `precision` by position
140 help: use the named argument by name to avoid ambiguity
142 LL | println!("Hello {0:1$.precision$}!", f = 0.02f32, width = 5, precision = 2);
145 warning: named argument `width` is not used by name
146 --> $DIR/issue-99265.rs:31:47
148 LL | println!("Hello {0:1$.2$}!", f = 0.02f32, width = 5, precision = 2);
149 | -- ^^^^^ this named argument is referred to by position in formatting string
151 | this formatting argument uses named argument `width` by position
153 help: use the named argument by name to avoid ambiguity
155 LL | println!("Hello {0:width$.2$}!", f = 0.02f32, width = 5, precision = 2);
158 warning: named argument `f` is not used by name
159 --> $DIR/issue-99265.rs:49:9
161 LL | "{}, Hello {1:2$.3$} {4:5$.6$}! {1}",
162 | --------- this formatting argument uses named argument `f` by position
165 | ^ this named argument is referred to by position in formatting string
167 help: use the named argument by name to avoid ambiguity
169 LL | "{}, Hello {f:2$.3$} {4:5$.6$}! {1}",
172 warning: named argument `precision` is not used by name
173 --> $DIR/issue-99265.rs:54:9
175 LL | "{}, Hello {1:2$.3$} {4:5$.6$}! {1}",
176 | -- this formatting argument uses named argument `precision` by position
179 | ^^^^^^^^^ this named argument is referred to by position in formatting string
181 help: use the named argument by name to avoid ambiguity
183 LL | "{}, Hello {1:2$.precision$} {4:5$.6$}! {1}",
186 warning: named argument `width` is not used by name
187 --> $DIR/issue-99265.rs:52:9
189 LL | "{}, Hello {1:2$.3$} {4:5$.6$}! {1}",
190 | -- this formatting argument uses named argument `width` by position
193 | ^^^^^ this named argument is referred to by position in formatting string
195 help: use the named argument by name to avoid ambiguity
197 LL | "{}, Hello {1:width$.3$} {4:5$.6$}! {1}",
200 warning: named argument `g` is not used by name
201 --> $DIR/issue-99265.rs:56:9
203 LL | "{}, Hello {1:2$.3$} {4:5$.6$}! {1}",
204 | --------- this formatting argument uses named argument `g` by position
207 | ^ this named argument is referred to by position in formatting string
209 help: use the named argument by name to avoid ambiguity
211 LL | "{}, Hello {1:2$.3$} {g:5$.6$}! {1}",
214 warning: named argument `precision2` is not used by name
215 --> $DIR/issue-99265.rs:60:9
217 LL | "{}, Hello {1:2$.3$} {4:5$.6$}! {1}",
218 | -- this formatting argument uses named argument `precision2` by position
221 | ^^^^^^^^^^ this named argument is referred to by position in formatting string
223 help: use the named argument by name to avoid ambiguity
225 LL | "{}, Hello {1:2$.3$} {4:5$.precision2$}! {1}",
228 warning: named argument `width2` is not used by name
229 --> $DIR/issue-99265.rs:58:9
231 LL | "{}, Hello {1:2$.3$} {4:5$.6$}! {1}",
232 | -- this formatting argument uses named argument `width2` by position
235 | ^^^^^^ this named argument is referred to by position in formatting string
237 help: use the named argument by name to avoid ambiguity
239 LL | "{}, Hello {1:2$.3$} {4:width2$.6$}! {1}",
242 warning: named argument `f` is not used by name
243 --> $DIR/issue-99265.rs:49:9
245 LL | "{}, Hello {1:2$.3$} {4:5$.6$}! {1}",
246 | --- this formatting argument uses named argument `f` by position
249 | ^ this named argument is referred to by position in formatting string
251 help: use the named argument by name to avoid ambiguity
253 LL | "{}, Hello {1:2$.3$} {4:5$.6$}! {f}",
256 warning: named argument `f` is not used by name
257 --> $DIR/issue-99265.rs:64:31
259 LL | println!("Hello {:0.1}!", f = 0.02f32);
260 | ------ ^ this named argument is referred to by position in formatting string
262 | this formatting argument uses named argument `f` by position
264 help: use the named argument by name to avoid ambiguity
266 LL | println!("Hello {f:0.1}!", f = 0.02f32);
269 warning: named argument `f` is not used by name
270 --> $DIR/issue-99265.rs:68:32
272 LL | println!("Hello {0:0.1}!", f = 0.02f32);
273 | ------- ^ this named argument is referred to by position in formatting string
275 | this formatting argument uses named argument `f` by position
277 help: use the named argument by name to avoid ambiguity
279 LL | println!("Hello {f:0.1}!", f = 0.02f32);
282 warning: named argument `v` is not used by name
283 --> $DIR/issue-99265.rs:79:23
285 LL | println!("{:0$}", v = val);
286 | ----- ^ this named argument is referred to by position in formatting string
288 | this formatting argument uses named argument `v` by position
290 help: use the named argument by name to avoid ambiguity
292 LL | println!("{v:0$}", v = val);
295 warning: named argument `v` is not used by name
296 --> $DIR/issue-99265.rs:79:23
298 LL | println!("{:0$}", v = val);
299 | -- ^ this named argument is referred to by position in formatting string
301 | this formatting argument uses named argument `v` by position
303 help: use the named argument by name to avoid ambiguity
305 LL | println!("{:v$}", v = val);
308 warning: named argument `v` is not used by name
309 --> $DIR/issue-99265.rs:84:24
311 LL | println!("{0:0$}", v = val);
312 | ------ ^ this named argument is referred to by position in formatting string
314 | this formatting argument uses named argument `v` by position
316 help: use the named argument by name to avoid ambiguity
318 LL | println!("{v:0$}", v = val);
321 warning: named argument `v` is not used by name
322 --> $DIR/issue-99265.rs:84:24
324 LL | println!("{0:0$}", v = val);
325 | -- ^ this named argument is referred to by position in formatting string
327 | this formatting argument uses named argument `v` by position
329 help: use the named argument by name to avoid ambiguity
331 LL | println!("{0:v$}", v = val);
334 warning: named argument `v` is not used by name
335 --> $DIR/issue-99265.rs:89:26
337 LL | println!("{:0$.0$}", v = val);
338 | -------- ^ this named argument is referred to by position in formatting string
340 | this formatting argument uses named argument `v` by position
342 help: use the named argument by name to avoid ambiguity
344 LL | println!("{v:0$.0$}", v = val);
347 warning: named argument `v` is not used by name
348 --> $DIR/issue-99265.rs:89:26
350 LL | println!("{:0$.0$}", v = val);
351 | -- ^ this named argument is referred to by position in formatting string
353 | this formatting argument uses named argument `v` by position
355 help: use the named argument by name to avoid ambiguity
357 LL | println!("{:0$.v$}", v = val);
360 warning: named argument `v` is not used by name
361 --> $DIR/issue-99265.rs:89:26
363 LL | println!("{:0$.0$}", v = val);
364 | -- ^ this named argument is referred to by position in formatting string
366 | this formatting argument uses named argument `v` by position
368 help: use the named argument by name to avoid ambiguity
370 LL | println!("{:v$.0$}", v = val);
373 warning: named argument `v` is not used by name
374 --> $DIR/issue-99265.rs:96:27
376 LL | println!("{0:0$.0$}", v = val);
377 | --------- ^ this named argument is referred to by position in formatting string
379 | this formatting argument uses named argument `v` by position
381 help: use the named argument by name to avoid ambiguity
383 LL | println!("{v:0$.0$}", v = val);
386 warning: named argument `v` is not used by name
387 --> $DIR/issue-99265.rs:96:27
389 LL | println!("{0:0$.0$}", v = val);
390 | -- ^ this named argument is referred to by position in formatting string
392 | this formatting argument uses named argument `v` by position
394 help: use the named argument by name to avoid ambiguity
396 LL | println!("{0:0$.v$}", v = val);
399 warning: named argument `v` is not used by name
400 --> $DIR/issue-99265.rs:96:27
402 LL | println!("{0:0$.0$}", v = val);
403 | -- ^ this named argument is referred to by position in formatting string
405 | this formatting argument uses named argument `v` by position
407 help: use the named argument by name to avoid ambiguity
409 LL | println!("{0:v$.0$}", v = val);
412 warning: named argument `a` is not used by name
413 --> $DIR/issue-99265.rs:104:28
415 LL | println!("{} {a} {0}", a = 1);
416 | -- ^ this named argument is referred to by position in formatting string
418 | this formatting argument uses named argument `a` by position
420 help: use the named argument by name to avoid ambiguity
422 LL | println!("{a} {a} {0}", a = 1);
425 warning: named argument `a` is not used by name
426 --> $DIR/issue-99265.rs:104:28
428 LL | println!("{} {a} {0}", a = 1);
429 | --- ^ this named argument is referred to by position in formatting string
431 | this formatting argument uses named argument `a` by position
433 help: use the named argument by name to avoid ambiguity
435 LL | println!("{} {a} {a}", a = 1);
438 warning: named argument `a` is not used by name
439 --> $DIR/issue-99265.rs:115:14
442 | -------- this formatting argument uses named argument `a` by position
444 LL | a = 1.0, b = 1, c = 2,
445 | ^ this named argument is referred to by position in formatting string
447 help: use the named argument by name to avoid ambiguity
452 warning: named argument `c` is not used by name
453 --> $DIR/issue-99265.rs:115:30
456 | -- this formatting argument uses named argument `c` by position
458 LL | a = 1.0, b = 1, c = 2,
459 | ^ this named argument is referred to by position in formatting string
461 help: use the named argument by name to avoid ambiguity
466 warning: named argument `b` is not used by name
467 --> $DIR/issue-99265.rs:115:23
470 | -- this formatting argument uses named argument `b` by position
472 LL | a = 1.0, b = 1, c = 2,
473 | ^ this named argument is referred to by position in formatting string
475 help: use the named argument by name to avoid ambiguity
480 warning: named argument `a` is not used by name
481 --> $DIR/issue-99265.rs:126:14
484 | --------- this formatting argument uses named argument `a` by position
486 LL | a = 1.0, b = 1, c = 2,
487 | ^ this named argument is referred to by position in formatting string
489 help: use the named argument by name to avoid ambiguity
494 warning: named argument `c` is not used by name
495 --> $DIR/issue-99265.rs:126:30
498 | -- this formatting argument uses named argument `c` by position
500 LL | a = 1.0, b = 1, c = 2,
501 | ^ this named argument is referred to by position in formatting string
503 help: use the named argument by name to avoid ambiguity
508 warning: named argument `b` is not used by name
509 --> $DIR/issue-99265.rs:126:23
512 | -- this formatting argument uses named argument `b` by position
514 LL | a = 1.0, b = 1, c = 2,
515 | ^ this named argument is referred to by position in formatting string
517 help: use the named argument by name to avoid ambiguity
522 warning: named argument `x` is not used by name
523 --> $DIR/issue-99265.rs:132:30
525 LL | println!("{{{:1$.2$}}}", x = 1.0, width = 3, precision = 2);
526 | -------- ^ this named argument is referred to by position in formatting string
528 | this formatting argument uses named argument `x` by position
530 help: use the named argument by name to avoid ambiguity
532 LL | println!("{{{x:1$.2$}}}", x = 1.0, width = 3, precision = 2);
535 warning: named argument `precision` is not used by name
536 --> $DIR/issue-99265.rs:132:50
538 LL | println!("{{{:1$.2$}}}", x = 1.0, width = 3, precision = 2);
539 | -- ^^^^^^^^^ this named argument is referred to by position in formatting string
541 | this formatting argument uses named argument `precision` by position
543 help: use the named argument by name to avoid ambiguity
545 LL | println!("{{{:1$.precision$}}}", x = 1.0, width = 3, precision = 2);
548 warning: named argument `width` is not used by name
549 --> $DIR/issue-99265.rs:132:39
551 LL | println!("{{{:1$.2$}}}", x = 1.0, width = 3, precision = 2);
552 | -- ^^^^^ this named argument is referred to by position in formatting string
554 | this formatting argument uses named argument `width` by position
556 help: use the named argument by name to avoid ambiguity
558 LL | println!("{{{:width$.2$}}}", x = 1.0, width = 3, precision = 2);
561 warning: 42 warnings emitted