]> git.lizzy.rs Git - rust.git/blob - tests/ui/uninlined_format_args_panic.edition2018.stderr
Don't suggest let else in match if the else arm explicitly mentions non obvious paths
[rust.git] / tests / ui / uninlined_format_args_panic.edition2018.stderr
1 error: variables can be used directly in the `format!` string
2   --> $DIR/uninlined_format_args_panic.rs:11:5
3    |
4 LL |     println!("val='{}'", var);
5    |     ^^^^^^^^^^^^^^^^^^^^^^^^^
6    |
7    = note: `-D clippy::uninlined-format-args` implied by `-D warnings`
8 help: change this to
9    |
10 LL -     println!("val='{}'", var);
11 LL +     println!("val='{var}'");
12    |
13
14 error: aborting due to previous error
15