]> git.lizzy.rs Git - rust.git/blob - src/tools/clippy/tests/ui/uninlined_format_args.stderr
Auto merge of #102717 - beetrees:repr128-c-style-debuginfo, r=nagisa
[rust.git] / src / tools / clippy / tests / ui / uninlined_format_args.stderr
1 error: variables can be used directly in the `format!` string
2   --> $DIR/uninlined_format_args.rs:41:5
3    |
4 LL |     println!("val='{}'", local_i32);
5    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
6    |
7    = note: `-D clippy::uninlined-format-args` implied by `-D warnings`
8 help: change this to
9    |
10 LL -     println!("val='{}'", local_i32);
11 LL +     println!("val='{local_i32}'");
12    |
13
14 error: variables can be used directly in the `format!` string
15   --> $DIR/uninlined_format_args.rs:42:5
16    |
17 LL |     println!("val='{   }'", local_i32); // 3 spaces
18    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
19    |
20 help: change this to
21    |
22 LL -     println!("val='{   }'", local_i32); // 3 spaces
23 LL +     println!("val='{local_i32}'"); // 3 spaces
24    |
25
26 error: variables can be used directly in the `format!` string
27   --> $DIR/uninlined_format_args.rs:43:5
28    |
29 LL |     println!("val='{    }'", local_i32); // tab
30    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
31    |
32 help: change this to
33    |
34 LL -     println!("val='{    }'", local_i32); // tab
35 LL +     println!("val='{local_i32}'"); // tab
36    |
37
38 error: variables can be used directly in the `format!` string
39   --> $DIR/uninlined_format_args.rs:44:5
40    |
41 LL |     println!("val='{     }'", local_i32); // space+tab
42    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
43    |
44 help: change this to
45    |
46 LL -     println!("val='{     }'", local_i32); // space+tab
47 LL +     println!("val='{local_i32}'"); // space+tab
48    |
49
50 error: variables can be used directly in the `format!` string
51   --> $DIR/uninlined_format_args.rs:45:5
52    |
53 LL |     println!("val='{     }'", local_i32); // tab+space
54    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
55    |
56 help: change this to
57    |
58 LL -     println!("val='{     }'", local_i32); // tab+space
59 LL +     println!("val='{local_i32}'"); // tab+space
60    |
61
62 error: variables can be used directly in the `format!` string
63   --> $DIR/uninlined_format_args.rs:51:5
64    |
65 LL |     println!("{}", local_i32);
66    |     ^^^^^^^^^^^^^^^^^^^^^^^^^
67    |
68 help: change this to
69    |
70 LL -     println!("{}", local_i32);
71 LL +     println!("{local_i32}");
72    |
73
74 error: variables can be used directly in the `format!` string
75   --> $DIR/uninlined_format_args.rs:52:5
76    |
77 LL |     println!("{}", fn_arg);
78    |     ^^^^^^^^^^^^^^^^^^^^^^
79    |
80 help: change this to
81    |
82 LL -     println!("{}", fn_arg);
83 LL +     println!("{fn_arg}");
84    |
85
86 error: variables can be used directly in the `format!` string
87   --> $DIR/uninlined_format_args.rs:53:5
88    |
89 LL |     println!("{:?}", local_i32);
90    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^
91    |
92 help: change this to
93    |
94 LL -     println!("{:?}", local_i32);
95 LL +     println!("{local_i32:?}");
96    |
97
98 error: variables can be used directly in the `format!` string
99   --> $DIR/uninlined_format_args.rs:54:5
100    |
101 LL |     println!("{:#?}", local_i32);
102    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
103    |
104 help: change this to
105    |
106 LL -     println!("{:#?}", local_i32);
107 LL +     println!("{local_i32:#?}");
108    |
109
110 error: variables can be used directly in the `format!` string
111   --> $DIR/uninlined_format_args.rs:55:5
112    |
113 LL |     println!("{:4}", local_i32);
114    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^
115    |
116 help: change this to
117    |
118 LL -     println!("{:4}", local_i32);
119 LL +     println!("{local_i32:4}");
120    |
121
122 error: variables can be used directly in the `format!` string
123   --> $DIR/uninlined_format_args.rs:56:5
124    |
125 LL |     println!("{:04}", local_i32);
126    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
127    |
128 help: change this to
129    |
130 LL -     println!("{:04}", local_i32);
131 LL +     println!("{local_i32:04}");
132    |
133
134 error: variables can be used directly in the `format!` string
135   --> $DIR/uninlined_format_args.rs:57:5
136    |
137 LL |     println!("{:<3}", local_i32);
138    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
139    |
140 help: change this to
141    |
142 LL -     println!("{:<3}", local_i32);
143 LL +     println!("{local_i32:<3}");
144    |
145
146 error: variables can be used directly in the `format!` string
147   --> $DIR/uninlined_format_args.rs:58:5
148    |
149 LL |     println!("{:#010x}", local_i32);
150    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
151    |
152 help: change this to
153    |
154 LL -     println!("{:#010x}", local_i32);
155 LL +     println!("{local_i32:#010x}");
156    |
157
158 error: variables can be used directly in the `format!` string
159   --> $DIR/uninlined_format_args.rs:59:5
160    |
161 LL |     println!("{:.1}", local_f64);
162    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
163    |
164 help: change this to
165    |
166 LL -     println!("{:.1}", local_f64);
167 LL +     println!("{local_f64:.1}");
168    |
169
170 error: variables can be used directly in the `format!` string
171   --> $DIR/uninlined_format_args.rs:60:5
172    |
173 LL |     println!("Hello {} is {:.*}", "x", local_i32, local_f64);
174    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
175    |
176 help: change this to
177    |
178 LL -     println!("Hello {} is {:.*}", "x", local_i32, local_f64);
179 LL +     println!("Hello {} is {local_f64:.local_i32$}", "x");
180    |
181
182 error: variables can be used directly in the `format!` string
183   --> $DIR/uninlined_format_args.rs:61:5
184    |
185 LL |     println!("Hello {} is {:.*}", local_i32, 5, local_f64);
186    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
187    |
188 help: change this to
189    |
190 LL -     println!("Hello {} is {:.*}", local_i32, 5, local_f64);
191 LL +     println!("Hello {local_i32} is {local_f64:.*}", 5);
192    |
193
194 error: variables can be used directly in the `format!` string
195   --> $DIR/uninlined_format_args.rs:62:5
196    |
197 LL |     println!("Hello {} is {2:.*}", local_i32, 5, local_f64);
198    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
199    |
200 help: change this to
201    |
202 LL -     println!("Hello {} is {2:.*}", local_i32, 5, local_f64);
203 LL +     println!("Hello {local_i32} is {local_f64:.*}", 5);
204    |
205
206 error: variables can be used directly in the `format!` string
207   --> $DIR/uninlined_format_args.rs:63:5
208    |
209 LL |     println!("{} {}", local_i32, local_f64);
210    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
211    |
212 help: change this to
213    |
214 LL -     println!("{} {}", local_i32, local_f64);
215 LL +     println!("{local_i32} {local_f64}");
216    |
217
218 error: variables can be used directly in the `format!` string
219   --> $DIR/uninlined_format_args.rs:64:5
220    |
221 LL |     println!("{}, {}", local_i32, local_opt.unwrap());
222    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
223    |
224 help: change this to
225    |
226 LL -     println!("{}, {}", local_i32, local_opt.unwrap());
227 LL +     println!("{local_i32}, {}", local_opt.unwrap());
228    |
229
230 error: variables can be used directly in the `format!` string
231   --> $DIR/uninlined_format_args.rs:65:5
232    |
233 LL |     println!("{}", val);
234    |     ^^^^^^^^^^^^^^^^^^^
235    |
236 help: change this to
237    |
238 LL -     println!("{}", val);
239 LL +     println!("{val}");
240    |
241
242 error: variables can be used directly in the `format!` string
243   --> $DIR/uninlined_format_args.rs:66:5
244    |
245 LL |     println!("{}", v = val);
246    |     ^^^^^^^^^^^^^^^^^^^^^^^
247    |
248 help: change this to
249    |
250 LL -     println!("{}", v = val);
251 LL +     println!("{val}");
252    |
253
254 error: variables can be used directly in the `format!` string
255   --> $DIR/uninlined_format_args.rs:68:5
256    |
257 LL |     println!("val='{/t }'", local_i32);
258    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
259    |
260 help: change this to
261    |
262 LL -     println!("val='{/t }'", local_i32);
263 LL +     println!("val='{local_i32}'");
264    |
265
266 error: variables can be used directly in the `format!` string
267   --> $DIR/uninlined_format_args.rs:69:5
268    |
269 LL |     println!("val='{/n }'", local_i32);
270    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
271    |
272 help: change this to
273    |
274 LL -     println!("val='{/n }'", local_i32);
275 LL +     println!("val='{local_i32}'");
276    |
277
278 error: variables can be used directly in the `format!` string
279   --> $DIR/uninlined_format_args.rs:70:5
280    |
281 LL |     println!("val='{local_i32}'", local_i32 = local_i32);
282    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
283    |
284 help: change this to
285    |
286 LL -     println!("val='{local_i32}'", local_i32 = local_i32);
287 LL +     println!("val='{local_i32}'");
288    |
289
290 error: variables can be used directly in the `format!` string
291   --> $DIR/uninlined_format_args.rs:71:5
292    |
293 LL |     println!("val='{local_i32}'", local_i32 = fn_arg);
294    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
295    |
296 help: change this to
297    |
298 LL -     println!("val='{local_i32}'", local_i32 = fn_arg);
299 LL +     println!("val='{fn_arg}'");
300    |
301
302 error: variables can be used directly in the `format!` string
303   --> $DIR/uninlined_format_args.rs:72:5
304    |
305 LL |     println!("{0}", local_i32);
306    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^
307    |
308 help: change this to
309    |
310 LL -     println!("{0}", local_i32);
311 LL +     println!("{local_i32}");
312    |
313
314 error: variables can be used directly in the `format!` string
315   --> $DIR/uninlined_format_args.rs:73:5
316    |
317 LL |     println!("{0:?}", local_i32);
318    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
319    |
320 help: change this to
321    |
322 LL -     println!("{0:?}", local_i32);
323 LL +     println!("{local_i32:?}");
324    |
325
326 error: variables can be used directly in the `format!` string
327   --> $DIR/uninlined_format_args.rs:74:5
328    |
329 LL |     println!("{0:#?}", local_i32);
330    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
331    |
332 help: change this to
333    |
334 LL -     println!("{0:#?}", local_i32);
335 LL +     println!("{local_i32:#?}");
336    |
337
338 error: variables can be used directly in the `format!` string
339   --> $DIR/uninlined_format_args.rs:75:5
340    |
341 LL |     println!("{0:04}", local_i32);
342    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
343    |
344 help: change this to
345    |
346 LL -     println!("{0:04}", local_i32);
347 LL +     println!("{local_i32:04}");
348    |
349
350 error: variables can be used directly in the `format!` string
351   --> $DIR/uninlined_format_args.rs:76:5
352    |
353 LL |     println!("{0:<3}", local_i32);
354    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
355    |
356 help: change this to
357    |
358 LL -     println!("{0:<3}", local_i32);
359 LL +     println!("{local_i32:<3}");
360    |
361
362 error: variables can be used directly in the `format!` string
363   --> $DIR/uninlined_format_args.rs:77:5
364    |
365 LL |     println!("{0:#010x}", local_i32);
366    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
367    |
368 help: change this to
369    |
370 LL -     println!("{0:#010x}", local_i32);
371 LL +     println!("{local_i32:#010x}");
372    |
373
374 error: variables can be used directly in the `format!` string
375   --> $DIR/uninlined_format_args.rs:78:5
376    |
377 LL |     println!("{0:.1}", local_f64);
378    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
379    |
380 help: change this to
381    |
382 LL -     println!("{0:.1}", local_f64);
383 LL +     println!("{local_f64:.1}");
384    |
385
386 error: variables can be used directly in the `format!` string
387   --> $DIR/uninlined_format_args.rs:79:5
388    |
389 LL |     println!("{0} {0}", local_i32);
390    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
391    |
392 help: change this to
393    |
394 LL -     println!("{0} {0}", local_i32);
395 LL +     println!("{local_i32} {local_i32}");
396    |
397
398 error: variables can be used directly in the `format!` string
399   --> $DIR/uninlined_format_args.rs:80:5
400    |
401 LL |     println!("{1} {} {0} {}", local_i32, local_f64);
402    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
403    |
404 help: change this to
405    |
406 LL -     println!("{1} {} {0} {}", local_i32, local_f64);
407 LL +     println!("{local_f64} {local_i32} {local_i32} {local_f64}");
408    |
409
410 error: variables can be used directly in the `format!` string
411   --> $DIR/uninlined_format_args.rs:81:5
412    |
413 LL |     println!("{0} {1}", local_i32, local_f64);
414    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
415    |
416 help: change this to
417    |
418 LL -     println!("{0} {1}", local_i32, local_f64);
419 LL +     println!("{local_i32} {local_f64}");
420    |
421
422 error: variables can be used directly in the `format!` string
423   --> $DIR/uninlined_format_args.rs:82:5
424    |
425 LL |     println!("{1} {0}", local_i32, local_f64);
426    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
427    |
428 help: change this to
429    |
430 LL -     println!("{1} {0}", local_i32, local_f64);
431 LL +     println!("{local_f64} {local_i32}");
432    |
433
434 error: variables can be used directly in the `format!` string
435   --> $DIR/uninlined_format_args.rs:83:5
436    |
437 LL |     println!("{1} {0} {1} {0}", local_i32, local_f64);
438    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
439    |
440 help: change this to
441    |
442 LL -     println!("{1} {0} {1} {0}", local_i32, local_f64);
443 LL +     println!("{local_f64} {local_i32} {local_f64} {local_i32}");
444    |
445
446 error: variables can be used directly in the `format!` string
447   --> $DIR/uninlined_format_args.rs:85:5
448    |
449 LL |     println!("{v}", v = local_i32);
450    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
451    |
452 help: change this to
453    |
454 LL -     println!("{v}", v = local_i32);
455 LL +     println!("{local_i32}");
456    |
457
458 error: variables can be used directly in the `format!` string
459   --> $DIR/uninlined_format_args.rs:86:5
460    |
461 LL |     println!("{local_i32:0$}", width);
462    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
463    |
464 help: change this to
465    |
466 LL -     println!("{local_i32:0$}", width);
467 LL +     println!("{local_i32:width$}");
468    |
469
470 error: variables can be used directly in the `format!` string
471   --> $DIR/uninlined_format_args.rs:87:5
472    |
473 LL |     println!("{local_i32:w$}", w = width);
474    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
475    |
476 help: change this to
477    |
478 LL -     println!("{local_i32:w$}", w = width);
479 LL +     println!("{local_i32:width$}");
480    |
481
482 error: variables can be used directly in the `format!` string
483   --> $DIR/uninlined_format_args.rs:88:5
484    |
485 LL |     println!("{local_i32:.0$}", prec);
486    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
487    |
488 help: change this to
489    |
490 LL -     println!("{local_i32:.0$}", prec);
491 LL +     println!("{local_i32:.prec$}");
492    |
493
494 error: variables can be used directly in the `format!` string
495   --> $DIR/uninlined_format_args.rs:89:5
496    |
497 LL |     println!("{local_i32:.p$}", p = prec);
498    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
499    |
500 help: change this to
501    |
502 LL -     println!("{local_i32:.p$}", p = prec);
503 LL +     println!("{local_i32:.prec$}");
504    |
505
506 error: variables can be used directly in the `format!` string
507   --> $DIR/uninlined_format_args.rs:90:5
508    |
509 LL |     println!("{:0$}", v = val);
510    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^
511    |
512 help: change this to
513    |
514 LL -     println!("{:0$}", v = val);
515 LL +     println!("{val:val$}");
516    |
517
518 error: variables can be used directly in the `format!` string
519   --> $DIR/uninlined_format_args.rs:91:5
520    |
521 LL |     println!("{0:0$}", v = val);
522    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^
523    |
524 help: change this to
525    |
526 LL -     println!("{0:0$}", v = val);
527 LL +     println!("{val:val$}");
528    |
529
530 error: variables can be used directly in the `format!` string
531   --> $DIR/uninlined_format_args.rs:92:5
532    |
533 LL |     println!("{:0$.0$}", v = val);
534    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
535    |
536 help: change this to
537    |
538 LL -     println!("{:0$.0$}", v = val);
539 LL +     println!("{val:val$.val$}");
540    |
541
542 error: variables can be used directly in the `format!` string
543   --> $DIR/uninlined_format_args.rs:93:5
544    |
545 LL |     println!("{0:0$.0$}", v = val);
546    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
547    |
548 help: change this to
549    |
550 LL -     println!("{0:0$.0$}", v = val);
551 LL +     println!("{val:val$.val$}");
552    |
553
554 error: variables can be used directly in the `format!` string
555   --> $DIR/uninlined_format_args.rs:94:5
556    |
557 LL |     println!("{0:0$.v$}", v = val);
558    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
559    |
560 help: change this to
561    |
562 LL -     println!("{0:0$.v$}", v = val);
563 LL +     println!("{val:val$.val$}");
564    |
565
566 error: variables can be used directly in the `format!` string
567   --> $DIR/uninlined_format_args.rs:95:5
568    |
569 LL |     println!("{0:v$.0$}", v = val);
570    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
571    |
572 help: change this to
573    |
574 LL -     println!("{0:v$.0$}", v = val);
575 LL +     println!("{val:val$.val$}");
576    |
577
578 error: variables can be used directly in the `format!` string
579   --> $DIR/uninlined_format_args.rs:96:5
580    |
581 LL |     println!("{v:0$.0$}", v = val);
582    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
583    |
584 help: change this to
585    |
586 LL -     println!("{v:0$.0$}", v = val);
587 LL +     println!("{val:val$.val$}");
588    |
589
590 error: variables can be used directly in the `format!` string
591   --> $DIR/uninlined_format_args.rs:97:5
592    |
593 LL |     println!("{v:v$.0$}", v = val);
594    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
595    |
596 help: change this to
597    |
598 LL -     println!("{v:v$.0$}", v = val);
599 LL +     println!("{val:val$.val$}");
600    |
601
602 error: variables can be used directly in the `format!` string
603   --> $DIR/uninlined_format_args.rs:98:5
604    |
605 LL |     println!("{v:0$.v$}", v = val);
606    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
607    |
608 help: change this to
609    |
610 LL -     println!("{v:0$.v$}", v = val);
611 LL +     println!("{val:val$.val$}");
612    |
613
614 error: variables can be used directly in the `format!` string
615   --> $DIR/uninlined_format_args.rs:99:5
616    |
617 LL |     println!("{v:v$.v$}", v = val);
618    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
619    |
620 help: change this to
621    |
622 LL -     println!("{v:v$.v$}", v = val);
623 LL +     println!("{val:val$.val$}");
624    |
625
626 error: variables can be used directly in the `format!` string
627   --> $DIR/uninlined_format_args.rs:100:5
628    |
629 LL |     println!("{:0$}", width);
630    |     ^^^^^^^^^^^^^^^^^^^^^^^^
631    |
632 help: change this to
633    |
634 LL -     println!("{:0$}", width);
635 LL +     println!("{width:width$}");
636    |
637
638 error: variables can be used directly in the `format!` string
639   --> $DIR/uninlined_format_args.rs:101:5
640    |
641 LL |     println!("{:1$}", local_i32, width);
642    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
643    |
644 help: change this to
645    |
646 LL -     println!("{:1$}", local_i32, width);
647 LL +     println!("{local_i32:width$}");
648    |
649
650 error: variables can be used directly in the `format!` string
651   --> $DIR/uninlined_format_args.rs:102:5
652    |
653 LL |     println!("{:w$}", w = width);
654    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
655    |
656 help: change this to
657    |
658 LL -     println!("{:w$}", w = width);
659 LL +     println!("{width:width$}");
660    |
661
662 error: variables can be used directly in the `format!` string
663   --> $DIR/uninlined_format_args.rs:103:5
664    |
665 LL |     println!("{:w$}", local_i32, w = width);
666    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
667    |
668 help: change this to
669    |
670 LL -     println!("{:w$}", local_i32, w = width);
671 LL +     println!("{local_i32:width$}");
672    |
673
674 error: variables can be used directly in the `format!` string
675   --> $DIR/uninlined_format_args.rs:104:5
676    |
677 LL |     println!("{:.0$}", prec);
678    |     ^^^^^^^^^^^^^^^^^^^^^^^^
679    |
680 help: change this to
681    |
682 LL -     println!("{:.0$}", prec);
683 LL +     println!("{prec:.prec$}");
684    |
685
686 error: variables can be used directly in the `format!` string
687   --> $DIR/uninlined_format_args.rs:105:5
688    |
689 LL |     println!("{:.1$}", local_i32, prec);
690    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
691    |
692 help: change this to
693    |
694 LL -     println!("{:.1$}", local_i32, prec);
695 LL +     println!("{local_i32:.prec$}");
696    |
697
698 error: variables can be used directly in the `format!` string
699   --> $DIR/uninlined_format_args.rs:106:5
700    |
701 LL |     println!("{:.p$}", p = prec);
702    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
703    |
704 help: change this to
705    |
706 LL -     println!("{:.p$}", p = prec);
707 LL +     println!("{prec:.prec$}");
708    |
709
710 error: variables can be used directly in the `format!` string
711   --> $DIR/uninlined_format_args.rs:107:5
712    |
713 LL |     println!("{:.p$}", local_i32, p = prec);
714    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
715    |
716 help: change this to
717    |
718 LL -     println!("{:.p$}", local_i32, p = prec);
719 LL +     println!("{local_i32:.prec$}");
720    |
721
722 error: variables can be used directly in the `format!` string
723   --> $DIR/uninlined_format_args.rs:108:5
724    |
725 LL |     println!("{:0$.1$}", width, prec);
726    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
727    |
728 help: change this to
729    |
730 LL -     println!("{:0$.1$}", width, prec);
731 LL +     println!("{width:width$.prec$}");
732    |
733
734 error: variables can be used directly in the `format!` string
735   --> $DIR/uninlined_format_args.rs:109:5
736    |
737 LL |     println!("{:0$.w$}", width, w = prec);
738    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
739    |
740 help: change this to
741    |
742 LL -     println!("{:0$.w$}", width, w = prec);
743 LL +     println!("{width:width$.prec$}");
744    |
745
746 error: variables can be used directly in the `format!` string
747   --> $DIR/uninlined_format_args.rs:110:5
748    |
749 LL |     println!("{:1$.2$}", local_f64, width, prec);
750    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
751    |
752 help: change this to
753    |
754 LL -     println!("{:1$.2$}", local_f64, width, prec);
755 LL +     println!("{local_f64:width$.prec$}");
756    |
757
758 error: variables can be used directly in the `format!` string
759   --> $DIR/uninlined_format_args.rs:111:5
760    |
761 LL |     println!("{:1$.2$} {0} {1} {2}", local_f64, width, prec);
762    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
763    |
764 help: change this to
765    |
766 LL -     println!("{:1$.2$} {0} {1} {2}", local_f64, width, prec);
767 LL +     println!("{local_f64:width$.prec$} {local_f64} {width} {prec}");
768    |
769
770 error: variables can be used directly in the `format!` string
771   --> $DIR/uninlined_format_args.rs:123:5
772    |
773 LL |     println!("Width = {}, value with width = {:0$}", local_i32, local_f64);
774    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
775    |
776 help: change this to
777    |
778 LL -     println!("Width = {}, value with width = {:0$}", local_i32, local_f64);
779 LL +     println!("Width = {local_i32}, value with width = {local_f64:local_i32$}");
780    |
781
782 error: variables can be used directly in the `format!` string
783   --> $DIR/uninlined_format_args.rs:124:5
784    |
785 LL |     println!("{:w$.p$}", local_i32, w = width, p = prec);
786    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
787    |
788 help: change this to
789    |
790 LL -     println!("{:w$.p$}", local_i32, w = width, p = prec);
791 LL +     println!("{local_i32:width$.prec$}");
792    |
793
794 error: variables can be used directly in the `format!` string
795   --> $DIR/uninlined_format_args.rs:125:5
796    |
797 LL |     println!("{:w$.p$}", w = width, p = prec);
798    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
799    |
800 help: change this to
801    |
802 LL -     println!("{:w$.p$}", w = width, p = prec);
803 LL +     println!("{width:width$.prec$}");
804    |
805
806 error: variables can be used directly in the `format!` string
807   --> $DIR/uninlined_format_args.rs:126:20
808    |
809 LL |     println!("{}", format!("{}", local_i32));
810    |                    ^^^^^^^^^^^^^^^^^^^^^^^^
811    |
812 help: change this to
813    |
814 LL -     println!("{}", format!("{}", local_i32));
815 LL +     println!("{}", format!("{local_i32}"));
816    |
817
818 error: variables can be used directly in the `format!` string
819   --> $DIR/uninlined_format_args.rs:149:5
820    |
821 LL |     println!("{}", /* comment with a comma , in it */ val);
822    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
823    |
824 help: change this to
825    |
826 LL -     println!("{}", /* comment with a comma , in it */ val);
827 LL +     println!("{val}");
828    |
829
830 error: variables can be used directly in the `format!` string
831   --> $DIR/uninlined_format_args.rs:155:9
832    |
833 LL |         panic!("p1 {}", local_i32);
834    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^
835    |
836 help: change this to
837    |
838 LL -         panic!("p1 {}", local_i32);
839 LL +         panic!("p1 {local_i32}");
840    |
841
842 error: variables can be used directly in the `format!` string
843   --> $DIR/uninlined_format_args.rs:158:9
844    |
845 LL |         panic!("p2 {0}", local_i32);
846    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^
847    |
848 help: change this to
849    |
850 LL -         panic!("p2 {0}", local_i32);
851 LL +         panic!("p2 {local_i32}");
852    |
853
854 error: variables can be used directly in the `format!` string
855   --> $DIR/uninlined_format_args.rs:161:9
856    |
857 LL |         panic!("p3 {local_i32}", local_i32 = local_i32);
858    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
859    |
860 help: change this to
861    |
862 LL -         panic!("p3 {local_i32}", local_i32 = local_i32);
863 LL +         panic!("p3 {local_i32}");
864    |
865
866 error: variables can be used directly in the `format!` string
867   --> $DIR/uninlined_format_args.rs:181:5
868    |
869 LL |     println!("expand='{}'", local_i32);
870    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
871    |
872 help: change this to
873    |
874 LL -     println!("expand='{}'", local_i32);
875 LL +     println!("expand='{local_i32}'");
876    |
877
878 error: aborting due to 73 previous errors
879