mirror of
https://github.com/rust-lang/rust
synced 2024-09-06 01:11:17 +00:00
16 lines
226 B
Rust
16 lines
226 B
Rust
#![deny(unused)]
|
|
fn foo(xyza: &str) {
|
|
//~^ ERROR unused variable: `xyza`
|
|
let _ = "{xyza}";
|
|
}
|
|
|
|
fn foo3(xyza: &str) {
|
|
//~^ ERROR unused variable: `xyza`
|
|
let _ = "aaa{xyza}bbb";
|
|
}
|
|
|
|
fn main() {
|
|
foo("x");
|
|
foo3("xx");
|
|
}
|