2022-10-08 03:49:00 -05:00
|
|
|
error: variables can be used directly in the `format!` string
|
2023-07-27 06:40:22 -05:00
|
|
|
--> $DIR/uninlined_format_args_panic.rs:10:5
|
2022-10-08 03:49:00 -05:00
|
|
|
|
|
|
|
|
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
|
|
|
|
|