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

17 lines
491 B
Text
Raw Normal View History

error: variables can be used directly in the `format!` string
2024-02-17 12:16:29 +00:00
--> tests/ui/uninlined_format_args_panic.rs:10:5
|
LL | println!("val='{}'", var);
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: `-D clippy::uninlined-format-args` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::uninlined_format_args)]`
help: change this to
|
LL - println!("val='{}'", var);
LL + println!("val='{var}'");
|
error: aborting due to 1 previous error