1 error: unused variable: `xyza`
2 --> $DIR/issue-100584.rs:2:8
4 LL | fn foo(xyza: &str) {
8 | -------- you might have meant to use string interpolation in this string literal
10 note: the lint level is defined here
11 --> $DIR/issue-100584.rs:1:9
15 = note: `#[deny(unused_variables)]` implied by `#[deny(unused)]`
16 help: string interpolation only works in `format!` invocations
18 LL | let _ = format!("{xyza}");
20 help: if this is intentional, prefix it with an underscore
22 LL | fn foo(_xyza: &str) {
25 error: unused variable: `xyza`
26 --> $DIR/issue-100584.rs:7:9
28 LL | fn foo3(xyza: &str) {
29 | ^^^^ unused variable
31 LL | let _ = "aaa{xyza}bbb";
32 | -------------- you might have meant to use string interpolation in this string literal
34 help: string interpolation only works in `format!` invocations
36 LL | let _ = format!("aaa{xyza}bbb");
38 help: if this is intentional, prefix it with an underscore
40 LL | fn foo3(_xyza: &str) {
43 error: aborting due to 2 previous errors