1 error: variables can be used directly in the `format!` string
2 --> $DIR/uninlined_format_args.rs:41:5
4 LL | println!("val='{}'", local_i32);
5 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
7 = note: `-D clippy::uninlined-format-args` implied by `-D warnings`
10 LL - println!("val='{}'", local_i32);
11 LL + println!("val='{local_i32}'");
14 error: variables can be used directly in the `format!` string
15 --> $DIR/uninlined_format_args.rs:42:5
17 LL | println!("val='{ }'", local_i32); // 3 spaces
18 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
22 LL - println!("val='{ }'", local_i32); // 3 spaces
23 LL + println!("val='{local_i32}'"); // 3 spaces
26 error: variables can be used directly in the `format!` string
27 --> $DIR/uninlined_format_args.rs:43:5
29 LL | println!("val='{ }'", local_i32); // tab
30 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
34 LL - println!("val='{ }'", local_i32); // tab
35 LL + println!("val='{local_i32}'"); // tab
38 error: variables can be used directly in the `format!` string
39 --> $DIR/uninlined_format_args.rs:44:5
41 LL | println!("val='{ }'", local_i32); // space+tab
42 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
46 LL - println!("val='{ }'", local_i32); // space+tab
47 LL + println!("val='{local_i32}'"); // space+tab
50 error: variables can be used directly in the `format!` string
51 --> $DIR/uninlined_format_args.rs:45:5
53 LL | println!("val='{ }'", local_i32); // tab+space
54 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
58 LL - println!("val='{ }'", local_i32); // tab+space
59 LL + println!("val='{local_i32}'"); // tab+space
62 error: variables can be used directly in the `format!` string
63 --> $DIR/uninlined_format_args.rs:51:5
65 LL | println!("{}", local_i32);
66 | ^^^^^^^^^^^^^^^^^^^^^^^^^
70 LL - println!("{}", local_i32);
71 LL + println!("{local_i32}");
74 error: variables can be used directly in the `format!` string
75 --> $DIR/uninlined_format_args.rs:52:5
77 LL | println!("{}", fn_arg);
78 | ^^^^^^^^^^^^^^^^^^^^^^
82 LL - println!("{}", fn_arg);
83 LL + println!("{fn_arg}");
86 error: variables can be used directly in the `format!` string
87 --> $DIR/uninlined_format_args.rs:53:5
89 LL | println!("{:?}", local_i32);
90 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
94 LL - println!("{:?}", local_i32);
95 LL + println!("{local_i32:?}");
98 error: variables can be used directly in the `format!` string
99 --> $DIR/uninlined_format_args.rs:54:5
101 LL | println!("{:#?}", local_i32);
102 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
106 LL - println!("{:#?}", local_i32);
107 LL + println!("{local_i32:#?}");
110 error: variables can be used directly in the `format!` string
111 --> $DIR/uninlined_format_args.rs:55:5
113 LL | println!("{:4}", local_i32);
114 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
118 LL - println!("{:4}", local_i32);
119 LL + println!("{local_i32:4}");
122 error: variables can be used directly in the `format!` string
123 --> $DIR/uninlined_format_args.rs:56:5
125 LL | println!("{:04}", local_i32);
126 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
130 LL - println!("{:04}", local_i32);
131 LL + println!("{local_i32:04}");
134 error: variables can be used directly in the `format!` string
135 --> $DIR/uninlined_format_args.rs:57:5
137 LL | println!("{:<3}", local_i32);
138 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
142 LL - println!("{:<3}", local_i32);
143 LL + println!("{local_i32:<3}");
146 error: variables can be used directly in the `format!` string
147 --> $DIR/uninlined_format_args.rs:58:5
149 LL | println!("{:#010x}", local_i32);
150 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
154 LL - println!("{:#010x}", local_i32);
155 LL + println!("{local_i32:#010x}");
158 error: variables can be used directly in the `format!` string
159 --> $DIR/uninlined_format_args.rs:59:5
161 LL | println!("{:.1}", local_f64);
162 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
166 LL - println!("{:.1}", local_f64);
167 LL + println!("{local_f64:.1}");
170 error: variables can be used directly in the `format!` string
171 --> $DIR/uninlined_format_args.rs:60:5
173 LL | println!("Hello {} is {:.*}", "x", local_i32, local_f64);
174 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
178 LL - println!("Hello {} is {:.*}", "x", local_i32, local_f64);
179 LL + println!("Hello {} is {local_f64:.local_i32$}", "x");
182 error: variables can be used directly in the `format!` string
183 --> $DIR/uninlined_format_args.rs:61:5
185 LL | println!("Hello {} is {:.*}", local_i32, 5, local_f64);
186 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
190 LL - println!("Hello {} is {:.*}", local_i32, 5, local_f64);
191 LL + println!("Hello {local_i32} is {local_f64:.*}", 5);
194 error: variables can be used directly in the `format!` string
195 --> $DIR/uninlined_format_args.rs:62:5
197 LL | println!("Hello {} is {2:.*}", local_i32, 5, local_f64);
198 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
202 LL - println!("Hello {} is {2:.*}", local_i32, 5, local_f64);
203 LL + println!("Hello {local_i32} is {local_f64:.*}", 5);
206 error: variables can be used directly in the `format!` string
207 --> $DIR/uninlined_format_args.rs:63:5
209 LL | println!("{} {}", local_i32, local_f64);
210 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
214 LL - println!("{} {}", local_i32, local_f64);
215 LL + println!("{local_i32} {local_f64}");
218 error: variables can be used directly in the `format!` string
219 --> $DIR/uninlined_format_args.rs:64:5
221 LL | println!("{}, {}", local_i32, local_opt.unwrap());
222 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
226 LL - println!("{}, {}", local_i32, local_opt.unwrap());
227 LL + println!("{local_i32}, {}", local_opt.unwrap());
230 error: variables can be used directly in the `format!` string
231 --> $DIR/uninlined_format_args.rs:65:5
233 LL | println!("{}", val);
234 | ^^^^^^^^^^^^^^^^^^^
238 LL - println!("{}", val);
239 LL + println!("{val}");
242 error: variables can be used directly in the `format!` string
243 --> $DIR/uninlined_format_args.rs:66:5
245 LL | println!("{}", v = val);
246 | ^^^^^^^^^^^^^^^^^^^^^^^
250 LL - println!("{}", v = val);
251 LL + println!("{val}");
254 error: variables can be used directly in the `format!` string
255 --> $DIR/uninlined_format_args.rs:68:5
257 LL | println!("val='{/t }'", local_i32);
258 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
262 LL - println!("val='{/t }'", local_i32);
263 LL + println!("val='{local_i32}'");
266 error: variables can be used directly in the `format!` string
267 --> $DIR/uninlined_format_args.rs:69:5
269 LL | println!("val='{/n }'", local_i32);
270 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
274 LL - println!("val='{/n }'", local_i32);
275 LL + println!("val='{local_i32}'");
278 error: variables can be used directly in the `format!` string
279 --> $DIR/uninlined_format_args.rs:70:5
281 LL | println!("val='{local_i32}'", local_i32 = local_i32);
282 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
286 LL - println!("val='{local_i32}'", local_i32 = local_i32);
287 LL + println!("val='{local_i32}'");
290 error: variables can be used directly in the `format!` string
291 --> $DIR/uninlined_format_args.rs:71:5
293 LL | println!("val='{local_i32}'", local_i32 = fn_arg);
294 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
298 LL - println!("val='{local_i32}'", local_i32 = fn_arg);
299 LL + println!("val='{fn_arg}'");
302 error: variables can be used directly in the `format!` string
303 --> $DIR/uninlined_format_args.rs:72:5
305 LL | println!("{0}", local_i32);
306 | ^^^^^^^^^^^^^^^^^^^^^^^^^^
310 LL - println!("{0}", local_i32);
311 LL + println!("{local_i32}");
314 error: variables can be used directly in the `format!` string
315 --> $DIR/uninlined_format_args.rs:73:5
317 LL | println!("{0:?}", local_i32);
318 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
322 LL - println!("{0:?}", local_i32);
323 LL + println!("{local_i32:?}");
326 error: variables can be used directly in the `format!` string
327 --> $DIR/uninlined_format_args.rs:74:5
329 LL | println!("{0:#?}", local_i32);
330 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
334 LL - println!("{0:#?}", local_i32);
335 LL + println!("{local_i32:#?}");
338 error: variables can be used directly in the `format!` string
339 --> $DIR/uninlined_format_args.rs:75:5
341 LL | println!("{0:04}", local_i32);
342 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
346 LL - println!("{0:04}", local_i32);
347 LL + println!("{local_i32:04}");
350 error: variables can be used directly in the `format!` string
351 --> $DIR/uninlined_format_args.rs:76:5
353 LL | println!("{0:<3}", local_i32);
354 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
358 LL - println!("{0:<3}", local_i32);
359 LL + println!("{local_i32:<3}");
362 error: variables can be used directly in the `format!` string
363 --> $DIR/uninlined_format_args.rs:77:5
365 LL | println!("{0:#010x}", local_i32);
366 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
370 LL - println!("{0:#010x}", local_i32);
371 LL + println!("{local_i32:#010x}");
374 error: variables can be used directly in the `format!` string
375 --> $DIR/uninlined_format_args.rs:78:5
377 LL | println!("{0:.1}", local_f64);
378 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
382 LL - println!("{0:.1}", local_f64);
383 LL + println!("{local_f64:.1}");
386 error: variables can be used directly in the `format!` string
387 --> $DIR/uninlined_format_args.rs:79:5
389 LL | println!("{0} {0}", local_i32);
390 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
394 LL - println!("{0} {0}", local_i32);
395 LL + println!("{local_i32} {local_i32}");
398 error: variables can be used directly in the `format!` string
399 --> $DIR/uninlined_format_args.rs:80:5
401 LL | println!("{1} {} {0} {}", local_i32, local_f64);
402 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
406 LL - println!("{1} {} {0} {}", local_i32, local_f64);
407 LL + println!("{local_f64} {local_i32} {local_i32} {local_f64}");
410 error: variables can be used directly in the `format!` string
411 --> $DIR/uninlined_format_args.rs:81:5
413 LL | println!("{0} {1}", local_i32, local_f64);
414 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
418 LL - println!("{0} {1}", local_i32, local_f64);
419 LL + println!("{local_i32} {local_f64}");
422 error: variables can be used directly in the `format!` string
423 --> $DIR/uninlined_format_args.rs:82:5
425 LL | println!("{1} {0}", local_i32, local_f64);
426 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
430 LL - println!("{1} {0}", local_i32, local_f64);
431 LL + println!("{local_f64} {local_i32}");
434 error: variables can be used directly in the `format!` string
435 --> $DIR/uninlined_format_args.rs:83:5
437 LL | println!("{1} {0} {1} {0}", local_i32, local_f64);
438 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
442 LL - println!("{1} {0} {1} {0}", local_i32, local_f64);
443 LL + println!("{local_f64} {local_i32} {local_f64} {local_i32}");
446 error: variables can be used directly in the `format!` string
447 --> $DIR/uninlined_format_args.rs:85:5
449 LL | println!("{v}", v = local_i32);
450 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
454 LL - println!("{v}", v = local_i32);
455 LL + println!("{local_i32}");
458 error: variables can be used directly in the `format!` string
459 --> $DIR/uninlined_format_args.rs:86:5
461 LL | println!("{local_i32:0$}", width);
462 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
466 LL - println!("{local_i32:0$}", width);
467 LL + println!("{local_i32:width$}");
470 error: variables can be used directly in the `format!` string
471 --> $DIR/uninlined_format_args.rs:87:5
473 LL | println!("{local_i32:w$}", w = width);
474 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
478 LL - println!("{local_i32:w$}", w = width);
479 LL + println!("{local_i32:width$}");
482 error: variables can be used directly in the `format!` string
483 --> $DIR/uninlined_format_args.rs:88:5
485 LL | println!("{local_i32:.0$}", prec);
486 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
490 LL - println!("{local_i32:.0$}", prec);
491 LL + println!("{local_i32:.prec$}");
494 error: variables can be used directly in the `format!` string
495 --> $DIR/uninlined_format_args.rs:89:5
497 LL | println!("{local_i32:.p$}", p = prec);
498 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
502 LL - println!("{local_i32:.p$}", p = prec);
503 LL + println!("{local_i32:.prec$}");
506 error: variables can be used directly in the `format!` string
507 --> $DIR/uninlined_format_args.rs:90:5
509 LL | println!("{:0$}", v = val);
510 | ^^^^^^^^^^^^^^^^^^^^^^^^^^
514 LL - println!("{:0$}", v = val);
515 LL + println!("{val:val$}");
518 error: variables can be used directly in the `format!` string
519 --> $DIR/uninlined_format_args.rs:91:5
521 LL | println!("{0:0$}", v = val);
522 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
526 LL - println!("{0:0$}", v = val);
527 LL + println!("{val:val$}");
530 error: variables can be used directly in the `format!` string
531 --> $DIR/uninlined_format_args.rs:92:5
533 LL | println!("{:0$.0$}", v = val);
534 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
538 LL - println!("{:0$.0$}", v = val);
539 LL + println!("{val:val$.val$}");
542 error: variables can be used directly in the `format!` string
543 --> $DIR/uninlined_format_args.rs:93:5
545 LL | println!("{0:0$.0$}", v = val);
546 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
550 LL - println!("{0:0$.0$}", v = val);
551 LL + println!("{val:val$.val$}");
554 error: variables can be used directly in the `format!` string
555 --> $DIR/uninlined_format_args.rs:94:5
557 LL | println!("{0:0$.v$}", v = val);
558 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
562 LL - println!("{0:0$.v$}", v = val);
563 LL + println!("{val:val$.val$}");
566 error: variables can be used directly in the `format!` string
567 --> $DIR/uninlined_format_args.rs:95:5
569 LL | println!("{0:v$.0$}", v = val);
570 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
574 LL - println!("{0:v$.0$}", v = val);
575 LL + println!("{val:val$.val$}");
578 error: variables can be used directly in the `format!` string
579 --> $DIR/uninlined_format_args.rs:96:5
581 LL | println!("{v:0$.0$}", v = val);
582 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
586 LL - println!("{v:0$.0$}", v = val);
587 LL + println!("{val:val$.val$}");
590 error: variables can be used directly in the `format!` string
591 --> $DIR/uninlined_format_args.rs:97:5
593 LL | println!("{v:v$.0$}", v = val);
594 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
598 LL - println!("{v:v$.0$}", v = val);
599 LL + println!("{val:val$.val$}");
602 error: variables can be used directly in the `format!` string
603 --> $DIR/uninlined_format_args.rs:98:5
605 LL | println!("{v:0$.v$}", v = val);
606 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
610 LL - println!("{v:0$.v$}", v = val);
611 LL + println!("{val:val$.val$}");
614 error: variables can be used directly in the `format!` string
615 --> $DIR/uninlined_format_args.rs:99:5
617 LL | println!("{v:v$.v$}", v = val);
618 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
622 LL - println!("{v:v$.v$}", v = val);
623 LL + println!("{val:val$.val$}");
626 error: variables can be used directly in the `format!` string
627 --> $DIR/uninlined_format_args.rs:100:5
629 LL | println!("{:0$}", width);
630 | ^^^^^^^^^^^^^^^^^^^^^^^^
634 LL - println!("{:0$}", width);
635 LL + println!("{width:width$}");
638 error: variables can be used directly in the `format!` string
639 --> $DIR/uninlined_format_args.rs:101:5
641 LL | println!("{:1$}", local_i32, width);
642 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
646 LL - println!("{:1$}", local_i32, width);
647 LL + println!("{local_i32:width$}");
650 error: variables can be used directly in the `format!` string
651 --> $DIR/uninlined_format_args.rs:102:5
653 LL | println!("{:w$}", w = width);
654 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
658 LL - println!("{:w$}", w = width);
659 LL + println!("{width:width$}");
662 error: variables can be used directly in the `format!` string
663 --> $DIR/uninlined_format_args.rs:103:5
665 LL | println!("{:w$}", local_i32, w = width);
666 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
670 LL - println!("{:w$}", local_i32, w = width);
671 LL + println!("{local_i32:width$}");
674 error: variables can be used directly in the `format!` string
675 --> $DIR/uninlined_format_args.rs:104:5
677 LL | println!("{:.0$}", prec);
678 | ^^^^^^^^^^^^^^^^^^^^^^^^
682 LL - println!("{:.0$}", prec);
683 LL + println!("{prec:.prec$}");
686 error: variables can be used directly in the `format!` string
687 --> $DIR/uninlined_format_args.rs:105:5
689 LL | println!("{:.1$}", local_i32, prec);
690 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
694 LL - println!("{:.1$}", local_i32, prec);
695 LL + println!("{local_i32:.prec$}");
698 error: variables can be used directly in the `format!` string
699 --> $DIR/uninlined_format_args.rs:106:5
701 LL | println!("{:.p$}", p = prec);
702 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
706 LL - println!("{:.p$}", p = prec);
707 LL + println!("{prec:.prec$}");
710 error: variables can be used directly in the `format!` string
711 --> $DIR/uninlined_format_args.rs:107:5
713 LL | println!("{:.p$}", local_i32, p = prec);
714 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
718 LL - println!("{:.p$}", local_i32, p = prec);
719 LL + println!("{local_i32:.prec$}");
722 error: variables can be used directly in the `format!` string
723 --> $DIR/uninlined_format_args.rs:108:5
725 LL | println!("{:0$.1$}", width, prec);
726 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
730 LL - println!("{:0$.1$}", width, prec);
731 LL + println!("{width:width$.prec$}");
734 error: variables can be used directly in the `format!` string
735 --> $DIR/uninlined_format_args.rs:109:5
737 LL | println!("{:0$.w$}", width, w = prec);
738 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
742 LL - println!("{:0$.w$}", width, w = prec);
743 LL + println!("{width:width$.prec$}");
746 error: variables can be used directly in the `format!` string
747 --> $DIR/uninlined_format_args.rs:110:5
749 LL | println!("{:1$.2$}", local_f64, width, prec);
750 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
754 LL - println!("{:1$.2$}", local_f64, width, prec);
755 LL + println!("{local_f64:width$.prec$}");
758 error: variables can be used directly in the `format!` string
759 --> $DIR/uninlined_format_args.rs:111:5
761 LL | println!("{:1$.2$} {0} {1} {2}", local_f64, width, prec);
762 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
766 LL - println!("{:1$.2$} {0} {1} {2}", local_f64, width, prec);
767 LL + println!("{local_f64:width$.prec$} {local_f64} {width} {prec}");
770 error: variables can be used directly in the `format!` string
771 --> $DIR/uninlined_format_args.rs:123:5
773 LL | println!("Width = {}, value with width = {:0$}", local_i32, local_f64);
774 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
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$}");
782 error: variables can be used directly in the `format!` string
783 --> $DIR/uninlined_format_args.rs:124:5
785 LL | println!("{:w$.p$}", local_i32, w = width, p = prec);
786 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
790 LL - println!("{:w$.p$}", local_i32, w = width, p = prec);
791 LL + println!("{local_i32:width$.prec$}");
794 error: variables can be used directly in the `format!` string
795 --> $DIR/uninlined_format_args.rs:125:5
797 LL | println!("{:w$.p$}", w = width, p = prec);
798 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
802 LL - println!("{:w$.p$}", w = width, p = prec);
803 LL + println!("{width:width$.prec$}");
806 error: variables can be used directly in the `format!` string
807 --> $DIR/uninlined_format_args.rs:126:20
809 LL | println!("{}", format!("{}", local_i32));
810 | ^^^^^^^^^^^^^^^^^^^^^^^^
814 LL - println!("{}", format!("{}", local_i32));
815 LL + println!("{}", format!("{local_i32}"));
818 error: variables can be used directly in the `format!` string
819 --> $DIR/uninlined_format_args.rs:149:5
821 LL | println!("{}", /* comment with a comma , in it */ val);
822 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
826 LL - println!("{}", /* comment with a comma , in it */ val);
827 LL + println!("{val}");
830 error: variables can be used directly in the `format!` string
831 --> $DIR/uninlined_format_args.rs:155:9
833 LL | panic!("p1 {}", local_i32);
834 | ^^^^^^^^^^^^^^^^^^^^^^^^^^
838 LL - panic!("p1 {}", local_i32);
839 LL + panic!("p1 {local_i32}");
842 error: variables can be used directly in the `format!` string
843 --> $DIR/uninlined_format_args.rs:158:9
845 LL | panic!("p2 {0}", local_i32);
846 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
850 LL - panic!("p2 {0}", local_i32);
851 LL + panic!("p2 {local_i32}");
854 error: variables can be used directly in the `format!` string
855 --> $DIR/uninlined_format_args.rs:161:9
857 LL | panic!("p3 {local_i32}", local_i32 = local_i32);
858 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
862 LL - panic!("p3 {local_i32}", local_i32 = local_i32);
863 LL + panic!("p3 {local_i32}");
866 error: variables can be used directly in the `format!` string
867 --> $DIR/uninlined_format_args.rs:181:5
869 LL | println!("expand='{}'", local_i32);
870 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
874 LL - println!("expand='{}'", local_i32);
875 LL + println!("expand='{local_i32}'");
878 error: aborting due to 73 previous errors