1 error: variables can be used directly in the `format!` string
2 --> $DIR/uninlined_format_args.rs:40: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:41: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:42: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:43: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:44: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:45:5
72 error: variables can be used directly in the `format!` string
73 --> $DIR/uninlined_format_args.rs:50:5
75 LL | println!("{}", local_i32);
76 | ^^^^^^^^^^^^^^^^^^^^^^^^^
80 LL - println!("{}", local_i32);
81 LL + println!("{local_i32}");
84 error: variables can be used directly in the `format!` string
85 --> $DIR/uninlined_format_args.rs:51:5
87 LL | println!("{}", fn_arg);
88 | ^^^^^^^^^^^^^^^^^^^^^^
92 LL - println!("{}", fn_arg);
93 LL + println!("{fn_arg}");
96 error: variables can be used directly in the `format!` string
97 --> $DIR/uninlined_format_args.rs:52:5
99 LL | println!("{:?}", local_i32);
100 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
104 LL - println!("{:?}", local_i32);
105 LL + println!("{local_i32:?}");
108 error: variables can be used directly in the `format!` string
109 --> $DIR/uninlined_format_args.rs:53:5
111 LL | println!("{:#?}", local_i32);
112 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
116 LL - println!("{:#?}", local_i32);
117 LL + println!("{local_i32:#?}");
120 error: variables can be used directly in the `format!` string
121 --> $DIR/uninlined_format_args.rs:54:5
123 LL | println!("{:4}", local_i32);
124 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
128 LL - println!("{:4}", local_i32);
129 LL + println!("{local_i32:4}");
132 error: variables can be used directly in the `format!` string
133 --> $DIR/uninlined_format_args.rs:55:5
135 LL | println!("{:04}", local_i32);
136 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
140 LL - println!("{:04}", local_i32);
141 LL + println!("{local_i32:04}");
144 error: variables can be used directly in the `format!` string
145 --> $DIR/uninlined_format_args.rs:56:5
147 LL | println!("{:<3}", local_i32);
148 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
152 LL - println!("{:<3}", local_i32);
153 LL + println!("{local_i32:<3}");
156 error: variables can be used directly in the `format!` string
157 --> $DIR/uninlined_format_args.rs:57:5
159 LL | println!("{:#010x}", local_i32);
160 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
164 LL - println!("{:#010x}", local_i32);
165 LL + println!("{local_i32:#010x}");
168 error: variables can be used directly in the `format!` string
169 --> $DIR/uninlined_format_args.rs:58:5
171 LL | println!("{:.1}", local_f64);
172 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
176 LL - println!("{:.1}", local_f64);
177 LL + println!("{local_f64:.1}");
180 error: variables can be used directly in the `format!` string
181 --> $DIR/uninlined_format_args.rs:62:5
183 LL | println!("{} {}", local_i32, local_f64);
184 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
188 LL - println!("{} {}", local_i32, local_f64);
189 LL + println!("{local_i32} {local_f64}");
192 error: variables can be used directly in the `format!` string
193 --> $DIR/uninlined_format_args.rs:64:5
195 LL | println!("{}", val);
196 | ^^^^^^^^^^^^^^^^^^^
200 LL - println!("{}", val);
201 LL + println!("{val}");
204 error: variables can be used directly in the `format!` string
205 --> $DIR/uninlined_format_args.rs:65:5
207 LL | println!("{}", v = val);
208 | ^^^^^^^^^^^^^^^^^^^^^^^
212 LL - println!("{}", v = val);
213 LL + println!("{val}");
216 error: variables can be used directly in the `format!` string
217 --> $DIR/uninlined_format_args.rs:67:5
219 LL | println!("val='{/t }'", local_i32);
220 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
224 LL - println!("val='{/t }'", local_i32);
225 LL + println!("val='{local_i32}'");
228 error: variables can be used directly in the `format!` string
229 --> $DIR/uninlined_format_args.rs:68:5
231 LL | println!("val='{/n }'", local_i32);
232 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
236 LL - println!("val='{/n }'", local_i32);
237 LL + println!("val='{local_i32}'");
240 error: variables can be used directly in the `format!` string
241 --> $DIR/uninlined_format_args.rs:69:5
243 LL | println!("val='{local_i32}'", local_i32 = local_i32);
244 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
248 LL - println!("val='{local_i32}'", local_i32 = local_i32);
249 LL + println!("val='{local_i32}'");
252 error: variables can be used directly in the `format!` string
253 --> $DIR/uninlined_format_args.rs:70:5
255 LL | println!("val='{local_i32}'", local_i32 = fn_arg);
256 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
260 LL - println!("val='{local_i32}'", local_i32 = fn_arg);
261 LL + println!("val='{fn_arg}'");
264 error: variables can be used directly in the `format!` string
265 --> $DIR/uninlined_format_args.rs:71:5
267 LL | println!("{0}", local_i32);
268 | ^^^^^^^^^^^^^^^^^^^^^^^^^^
272 LL - println!("{0}", local_i32);
273 LL + println!("{local_i32}");
276 error: variables can be used directly in the `format!` string
277 --> $DIR/uninlined_format_args.rs:72:5
279 LL | println!("{0:?}", local_i32);
280 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
284 LL - println!("{0:?}", local_i32);
285 LL + println!("{local_i32:?}");
288 error: variables can be used directly in the `format!` string
289 --> $DIR/uninlined_format_args.rs:73:5
291 LL | println!("{0:#?}", local_i32);
292 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
296 LL - println!("{0:#?}", local_i32);
297 LL + println!("{local_i32:#?}");
300 error: variables can be used directly in the `format!` string
301 --> $DIR/uninlined_format_args.rs:74:5
303 LL | println!("{0:04}", local_i32);
304 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
308 LL - println!("{0:04}", local_i32);
309 LL + println!("{local_i32:04}");
312 error: variables can be used directly in the `format!` string
313 --> $DIR/uninlined_format_args.rs:75:5
315 LL | println!("{0:<3}", local_i32);
316 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
320 LL - println!("{0:<3}", local_i32);
321 LL + println!("{local_i32:<3}");
324 error: variables can be used directly in the `format!` string
325 --> $DIR/uninlined_format_args.rs:76:5
327 LL | println!("{0:#010x}", local_i32);
328 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
332 LL - println!("{0:#010x}", local_i32);
333 LL + println!("{local_i32:#010x}");
336 error: variables can be used directly in the `format!` string
337 --> $DIR/uninlined_format_args.rs:77:5
339 LL | println!("{0:.1}", local_f64);
340 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
344 LL - println!("{0:.1}", local_f64);
345 LL + println!("{local_f64:.1}");
348 error: variables can be used directly in the `format!` string
349 --> $DIR/uninlined_format_args.rs:78:5
351 LL | println!("{0} {0}", local_i32);
352 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
356 LL - println!("{0} {0}", local_i32);
357 LL + println!("{local_i32} {local_i32}");
360 error: variables can be used directly in the `format!` string
361 --> $DIR/uninlined_format_args.rs:79:5
363 LL | println!("{1} {} {0} {}", local_i32, local_f64);
364 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
368 LL - println!("{1} {} {0} {}", local_i32, local_f64);
369 LL + println!("{local_f64} {local_i32} {local_i32} {local_f64}");
372 error: variables can be used directly in the `format!` string
373 --> $DIR/uninlined_format_args.rs:80:5
375 LL | println!("{0} {1}", local_i32, local_f64);
376 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
380 LL - println!("{0} {1}", local_i32, local_f64);
381 LL + println!("{local_i32} {local_f64}");
384 error: variables can be used directly in the `format!` string
385 --> $DIR/uninlined_format_args.rs:81:5
387 LL | println!("{1} {0}", local_i32, local_f64);
388 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
392 LL - println!("{1} {0}", local_i32, local_f64);
393 LL + println!("{local_f64} {local_i32}");
396 error: variables can be used directly in the `format!` string
397 --> $DIR/uninlined_format_args.rs:82:5
399 LL | println!("{1} {0} {1} {0}", local_i32, local_f64);
400 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
404 LL - println!("{1} {0} {1} {0}", local_i32, local_f64);
405 LL + println!("{local_f64} {local_i32} {local_f64} {local_i32}");
408 error: variables can be used directly in the `format!` string
409 --> $DIR/uninlined_format_args.rs:84:5
411 LL | println!("{v}", v = local_i32);
412 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
416 LL - println!("{v}", v = local_i32);
417 LL + println!("{local_i32}");
420 error: variables can be used directly in the `format!` string
421 --> $DIR/uninlined_format_args.rs:85:5
423 LL | println!("{local_i32:0$}", width);
424 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
428 LL - println!("{local_i32:0$}", width);
429 LL + println!("{local_i32:width$}");
432 error: variables can be used directly in the `format!` string
433 --> $DIR/uninlined_format_args.rs:86:5
435 LL | println!("{local_i32:w$}", w = width);
436 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
440 LL - println!("{local_i32:w$}", w = width);
441 LL + println!("{local_i32:width$}");
444 error: variables can be used directly in the `format!` string
445 --> $DIR/uninlined_format_args.rs:87:5
447 LL | println!("{local_i32:.0$}", prec);
448 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
452 LL - println!("{local_i32:.0$}", prec);
453 LL + println!("{local_i32:.prec$}");
456 error: variables can be used directly in the `format!` string
457 --> $DIR/uninlined_format_args.rs:88:5
459 LL | println!("{local_i32:.p$}", p = prec);
460 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
464 LL - println!("{local_i32:.p$}", p = prec);
465 LL + println!("{local_i32:.prec$}");
468 error: variables can be used directly in the `format!` string
469 --> $DIR/uninlined_format_args.rs:89:5
471 LL | println!("{:0$}", v = val);
472 | ^^^^^^^^^^^^^^^^^^^^^^^^^^
476 LL - println!("{:0$}", v = val);
477 LL + println!("{val:val$}");
480 error: variables can be used directly in the `format!` string
481 --> $DIR/uninlined_format_args.rs:90:5
483 LL | println!("{0:0$}", v = val);
484 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
488 LL - println!("{0:0$}", v = val);
489 LL + println!("{val:val$}");
492 error: variables can be used directly in the `format!` string
493 --> $DIR/uninlined_format_args.rs:91:5
495 LL | println!("{:0$.0$}", v = val);
496 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
500 LL - println!("{:0$.0$}", v = val);
501 LL + println!("{val:val$.val$}");
504 error: variables can be used directly in the `format!` string
505 --> $DIR/uninlined_format_args.rs:92:5
507 LL | println!("{0:0$.0$}", v = val);
508 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
512 LL - println!("{0:0$.0$}", v = val);
513 LL + println!("{val:val$.val$}");
516 error: variables can be used directly in the `format!` string
517 --> $DIR/uninlined_format_args.rs:93:5
519 LL | println!("{0:0$.v$}", v = val);
520 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
524 LL - println!("{0:0$.v$}", v = val);
525 LL + println!("{val:val$.val$}");
528 error: variables can be used directly in the `format!` string
529 --> $DIR/uninlined_format_args.rs:94:5
531 LL | println!("{0:v$.0$}", v = val);
532 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
536 LL - println!("{0:v$.0$}", v = val);
537 LL + println!("{val:val$.val$}");
540 error: variables can be used directly in the `format!` string
541 --> $DIR/uninlined_format_args.rs:95:5
543 LL | println!("{v:0$.0$}", v = val);
544 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
548 LL - println!("{v:0$.0$}", v = val);
549 LL + println!("{val:val$.val$}");
552 error: variables can be used directly in the `format!` string
553 --> $DIR/uninlined_format_args.rs:96:5
555 LL | println!("{v:v$.0$}", v = val);
556 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
560 LL - println!("{v:v$.0$}", v = val);
561 LL + println!("{val:val$.val$}");
564 error: variables can be used directly in the `format!` string
565 --> $DIR/uninlined_format_args.rs:97:5
567 LL | println!("{v:0$.v$}", v = val);
568 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
572 LL - println!("{v:0$.v$}", v = val);
573 LL + println!("{val:val$.val$}");
576 error: variables can be used directly in the `format!` string
577 --> $DIR/uninlined_format_args.rs:98:5
579 LL | println!("{v:v$.v$}", v = val);
580 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
584 LL - println!("{v:v$.v$}", v = val);
585 LL + println!("{val:val$.val$}");
588 error: variables can be used directly in the `format!` string
589 --> $DIR/uninlined_format_args.rs:99:5
591 LL | println!("{:0$}", width);
592 | ^^^^^^^^^^^^^^^^^^^^^^^^
596 LL - println!("{:0$}", width);
597 LL + println!("{width:width$}");
600 error: variables can be used directly in the `format!` string
601 --> $DIR/uninlined_format_args.rs:100:5
603 LL | println!("{:1$}", local_i32, width);
604 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
608 LL - println!("{:1$}", local_i32, width);
609 LL + println!("{local_i32:width$}");
612 error: variables can be used directly in the `format!` string
613 --> $DIR/uninlined_format_args.rs:101:5
615 LL | println!("{:w$}", w = width);
616 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
620 LL - println!("{:w$}", w = width);
621 LL + println!("{width:width$}");
624 error: variables can be used directly in the `format!` string
625 --> $DIR/uninlined_format_args.rs:102:5
627 LL | println!("{:w$}", local_i32, w = width);
628 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
632 LL - println!("{:w$}", local_i32, w = width);
633 LL + println!("{local_i32:width$}");
636 error: variables can be used directly in the `format!` string
637 --> $DIR/uninlined_format_args.rs:103:5
639 LL | println!("{:.0$}", prec);
640 | ^^^^^^^^^^^^^^^^^^^^^^^^
644 LL - println!("{:.0$}", prec);
645 LL + println!("{prec:.prec$}");
648 error: variables can be used directly in the `format!` string
649 --> $DIR/uninlined_format_args.rs:104:5
651 LL | println!("{:.1$}", local_i32, prec);
652 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
656 LL - println!("{:.1$}", local_i32, prec);
657 LL + println!("{local_i32:.prec$}");
660 error: variables can be used directly in the `format!` string
661 --> $DIR/uninlined_format_args.rs:105:5
663 LL | println!("{:.p$}", p = prec);
664 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
668 LL - println!("{:.p$}", p = prec);
669 LL + println!("{prec:.prec$}");
672 error: variables can be used directly in the `format!` string
673 --> $DIR/uninlined_format_args.rs:106:5
675 LL | println!("{:.p$}", local_i32, p = prec);
676 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
680 LL - println!("{:.p$}", local_i32, p = prec);
681 LL + println!("{local_i32:.prec$}");
684 error: variables can be used directly in the `format!` string
685 --> $DIR/uninlined_format_args.rs:107:5
687 LL | println!("{:0$.1$}", width, prec);
688 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
692 LL - println!("{:0$.1$}", width, prec);
693 LL + println!("{width:width$.prec$}");
696 error: variables can be used directly in the `format!` string
697 --> $DIR/uninlined_format_args.rs:108:5
699 LL | println!("{:0$.w$}", width, w = prec);
700 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
704 LL - println!("{:0$.w$}", width, w = prec);
705 LL + println!("{width:width$.prec$}");
708 error: variables can be used directly in the `format!` string
709 --> $DIR/uninlined_format_args.rs:109:5
711 LL | println!("{:1$.2$}", local_f64, width, prec);
712 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
716 LL - println!("{:1$.2$}", local_f64, width, prec);
717 LL + println!("{local_f64:width$.prec$}");
720 error: variables can be used directly in the `format!` string
721 --> $DIR/uninlined_format_args.rs:110:5
723 LL | println!("{:1$.2$} {0} {1} {2}", local_f64, width, prec);
724 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
728 LL - println!("{:1$.2$} {0} {1} {2}", local_f64, width, prec);
729 LL + println!("{local_f64:width$.prec$} {local_f64} {width} {prec}");
732 error: variables can be used directly in the `format!` string
733 --> $DIR/uninlined_format_args.rs:111:5
736 LL | | "{0:1$.2$} {0:2$.1$} {1:0$.2$} {1:2$.0$} {2:0$.1$} {2:1$.0$}",
737 LL | | local_i32, width, prec,
741 error: variables can be used directly in the `format!` string
742 --> $DIR/uninlined_format_args.rs:122:5
744 LL | println!("Width = {}, value with width = {:0$}", local_i32, local_f64);
745 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
749 LL - println!("Width = {}, value with width = {:0$}", local_i32, local_f64);
750 LL + println!("Width = {local_i32}, value with width = {local_f64:local_i32$}");
753 error: variables can be used directly in the `format!` string
754 --> $DIR/uninlined_format_args.rs:123:5
756 LL | println!("{:w$.p$}", local_i32, w = width, p = prec);
757 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
761 LL - println!("{:w$.p$}", local_i32, w = width, p = prec);
762 LL + println!("{local_i32:width$.prec$}");
765 error: variables can be used directly in the `format!` string
766 --> $DIR/uninlined_format_args.rs:124:5
768 LL | println!("{:w$.p$}", w = width, p = prec);
769 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
773 LL - println!("{:w$.p$}", w = width, p = prec);
774 LL + println!("{width:width$.prec$}");
777 error: variables can be used directly in the `format!` string
778 --> $DIR/uninlined_format_args.rs:125:20
780 LL | println!("{}", format!("{}", local_i32));
781 | ^^^^^^^^^^^^^^^^^^^^^^^^
785 LL - println!("{}", format!("{}", local_i32));
786 LL + println!("{}", format!("{local_i32}"));
789 error: variables can be used directly in the `format!` string
790 --> $DIR/uninlined_format_args.rs:143:5
794 LL | | // comment with a comma , in it
799 error: variables can be used directly in the `format!` string
800 --> $DIR/uninlined_format_args.rs:148:5
802 LL | println!("{}", /* comment with a comma , in it */ val);
803 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
807 LL - println!("{}", /* comment with a comma , in it */ val);
808 LL + println!("{val}");
811 error: variables can be used directly in the `format!` string
812 --> $DIR/uninlined_format_args.rs:154:9
814 LL | panic!("p1 {}", local_i32);
815 | ^^^^^^^^^^^^^^^^^^^^^^^^^^
819 LL - panic!("p1 {}", local_i32);
820 LL + panic!("p1 {local_i32}");
823 error: variables can be used directly in the `format!` string
824 --> $DIR/uninlined_format_args.rs:157:9
826 LL | panic!("p2 {0}", local_i32);
827 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
831 LL - panic!("p2 {0}", local_i32);
832 LL + panic!("p2 {local_i32}");
835 error: variables can be used directly in the `format!` string
836 --> $DIR/uninlined_format_args.rs:160:9
838 LL | panic!("p3 {local_i32}", local_i32 = local_i32);
839 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
843 LL - panic!("p3 {local_i32}", local_i32 = local_i32);
844 LL + panic!("p3 {local_i32}");
847 error: variables can be used directly in the `format!` string
848 --> $DIR/uninlined_format_args.rs:180:5
850 LL | println!("expand='{}'", local_i32);
851 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
855 LL - println!("expand='{}'", local_i32);
856 LL + println!("expand='{local_i32}'");
859 error: aborting due to 72 previous errors