@@ -59,22 +59,6 @@ LL - println!("val='{ }'", local_i32); // tab+space
5959LL + println!("val='{local_i32}'"); // tab+space
6060 |
6161
62- error: variables can be used directly in the `format!` string
63- --> $DIR/uninlined_format_args.rs:46:5
64- |
65- LL | / println!(
66- LL | | "val='{
67- LL | | }'",
68- LL | | local_i32
69- LL | | );
70- | |_____^
71- |
72- help: change this to
73- |
74- LL - "val='{
75- LL + "val='{local_i32}'"
76- |
77-
7862error: variables can be used directly in the `format!` string
7963 --> $DIR/uninlined_format_args.rs:51:5
8064 |
@@ -783,25 +767,6 @@ LL - println!("{:1$.2$} {0} {1} {2}", local_f64, width, prec);
783767LL + println!("{local_f64:width$.prec$} {local_f64} {width} {prec}");
784768 |
785769
786- error: variables can be used directly in the `format!` string
787- --> $DIR/uninlined_format_args.rs:112:5
788- |
789- LL | / println!(
790- LL | | "{0:1$.2$} {0:2$.1$} {1:0$.2$} {1:2$.0$} {2:0$.1$} {2:1$.0$}",
791- LL | | local_i32, width, prec,
792- LL | | );
793- | |_____^
794- |
795- help: change this to
796- |
797- LL ~ "{local_i32:width$.prec$} {local_i32:prec$.width$} {width:local_i32$.prec$} {width:prec$.local_i32$} {prec:local_i32$.width$} {prec:width$.local_i32$}", width, prec,
798- LL ~ "{0:1$.2$} {0:2$.1$} {1:0$.2$} {1:2$.0$} {2:0$.1$} {2:1$.0$}", width, prec,
799- LL ~ "{0:1$.2$} {0:2$.1$} {1:0$.2$} {1:2$.0$} {2:0$.1$} {2:1$.0$}", width, prec,
800- LL ~ "{0:1$.2$} {0:2$.1$} {1:0$.2$} {1:2$.0$} {2:0$.1$} {2:1$.0$}", width, prec,
801- LL ~ "{0:1$.2$} {0:2$.1$} {1:0$.2$} {1:2$.0$} {2:0$.1$} {2:1$.0$}", width, prec,
802- LL ~ "{0:1$.2$} {0:2$.1$} {1:0$.2$} {1:2$.0$} {2:0$.1$} {2:1$.0$}",
803- |
804-
805770error: variables can be used directly in the `format!` string
806771 --> $DIR/uninlined_format_args.rs:123:5
807772 |
@@ -850,22 +815,6 @@ LL - println!("{}", format!("{}", local_i32));
850815LL + println!("{}", format!("{local_i32}"));
851816 |
852817
853- error: variables can be used directly in the `format!` string
854- --> $DIR/uninlined_format_args.rs:144:5
855- |
856- LL | / println!(
857- LL | | "{}",
858- LL | | // comment with a comma , in it
859- LL | | val,
860- LL | | );
861- | |_____^
862- |
863- help: change this to
864- |
865- LL - "{}",
866- LL + "{val}",
867- |
868-
869818error: variables can be used directly in the `format!` string
870819 --> $DIR/uninlined_format_args.rs:149:5
871820 |
@@ -890,5 +839,5 @@ LL - println!("expand='{}'", local_i32);
890839LL + println!("expand='{local_i32}'");
891840 |
892841
893- error: aborting due to 73 previous errors
842+ error: aborting due to 70 previous errors
894843
0 commit comments