@@ -59,22 +59,6 @@ LL - println!("val='{ }'", local_i32); // tab+space
59
59
LL + println!("val='{local_i32}'"); // tab+space
60
60
|
61
61
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
-
78
62
error: variables can be used directly in the `format!` string
79
63
--> $DIR/uninlined_format_args.rs:51:5
80
64
|
@@ -783,25 +767,6 @@ LL - println!("{:1$.2$} {0} {1} {2}", local_f64, width, prec);
783
767
LL + println!("{local_f64:width$.prec$} {local_f64} {width} {prec}");
784
768
|
785
769
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
-
805
770
error: variables can be used directly in the `format!` string
806
771
--> $DIR/uninlined_format_args.rs:123:5
807
772
|
@@ -850,22 +815,6 @@ LL - println!("{}", format!("{}", local_i32));
850
815
LL + println!("{}", format!("{local_i32}"));
851
816
|
852
817
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
-
869
818
error: variables can be used directly in the `format!` string
870
819
--> $DIR/uninlined_format_args.rs:149:5
871
820
|
@@ -890,5 +839,5 @@ LL - println!("expand='{}'", local_i32);
890
839
LL + println!("expand='{local_i32}'");
891
840
|
892
841
893
- error: aborting due to 73 previous errors
842
+ error: aborting due to 70 previous errors
894
843
0 commit comments