summaryrefslogtreecommitdiffstats
path: root/src/tools/clippy/tests/ui/uninlined_format_args_panic.edition2018.stderr
blob: 221efeb50cd9b3c16a56f344001565bafed4f373 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
error: variables can be used directly in the `format!` string
  --> $DIR/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 previous error