rust/tests/ui/lint/unused/issue-119383-if-let-guard.rs

10 lines
179 B
Rust

#![feature(if_let_guard)]
#![deny(unused_variables)]
fn main() {
match () {
() if let Some(b) = Some(()) => {} //~ ERROR unused variable: `b`
_ => {}
}
}