11error: variables can be used directly in the `format!` string
2- --> $DIR/uninlined_format_args.rs:9 :5
2+ --> $DIR/uninlined_format_args.rs:10 :5
33 |
44LL | println!("val='{}'", local_i32);
55 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -12,7 +12,7 @@ LL + println!("val='{local_i32}'");
1212 |
1313
1414error: variables can be used directly in the `format!` string
15- --> $DIR/uninlined_format_args.rs:10 :5
15+ --> $DIR/uninlined_format_args.rs:11 :5
1616 |
1717LL | println!("Hello {} is {:.*}", "x", local_i32, local_f64);
1818 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -24,7 +24,7 @@ LL + println!("Hello {} is {local_f64:.local_i32$}", "x");
2424 |
2525
2626error: literal with an empty format string
27- --> $DIR/uninlined_format_args.rs:10 :35
27+ --> $DIR/uninlined_format_args.rs:11 :35
2828 |
2929LL | println!("Hello {} is {:.*}", "x", local_i32, local_f64);
3030 | ^^^
@@ -37,7 +37,7 @@ LL + println!("Hello x is {:.*}", local_i32, local_f64);
3737 |
3838
3939error: variables can be used directly in the `format!` string
40- --> $DIR/uninlined_format_args.rs:11 :5
40+ --> $DIR/uninlined_format_args.rs:12 :5
4141 |
4242LL | println!("Hello {} is {:.*}", local_i32, 5, local_f64);
4343 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -49,7 +49,7 @@ LL + println!("Hello {local_i32} is {local_f64:.*}", 5);
4949 |
5050
5151error: variables can be used directly in the `format!` string
52- --> $DIR/uninlined_format_args.rs:12 :5
52+ --> $DIR/uninlined_format_args.rs:13 :5
5353 |
5454LL | println!("Hello {} is {2:.*}", local_i32, 5, local_f64);
5555 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -61,7 +61,7 @@ LL + println!("Hello {local_i32} is {local_f64:.*}", 5);
6161 |
6262
6363error: variables can be used directly in the `format!` string
64- --> $DIR/uninlined_format_args.rs:13 :5
64+ --> $DIR/uninlined_format_args.rs:14 :5
6565 |
6666LL | println!("{}, {}", local_i32, local_opt.unwrap());
6767 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
0 commit comments