rust-clippy/tests/ui/uninlined_format_args_panic.edition2018.stderr

16 lines
402 B
Text
Raw Normal View History

error: variables can be used directly in the `format!` string
2022-10-13 11:40:13 +00:00
--> $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