rust/tests/ui/issues/issue-22599.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

11 lines
158 B
Rust
Raw Normal View History

#![deny(unused_variables)]
fn f(_: i32) {}
fn main() {
let mut v = 0;
f(v);
v = match 0 { a => 0 }; //~ ERROR: unused variable: `a`
f(v);
}