blob: 2c8061259229a83f8f82609b7800cb12c226fabe (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
error: variables can be used directly in the `format!` string
--> $DIR/uninlined_format_args_panic.rs:11:5
|
LL | println!("val='{}'", var);
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: `-D clippy::uninlined-format-args` implied by `-D warnings`
help: change this to
|
LL - println!("val='{}'", var);
LL + println!("val='{var}'");
|
error: aborting due to previous error
|