rust/tests/ui/lint/unused/issue-119383-if-let-guard.rs
2023-12-29 13:49:23 +01:00

10 lines
179 B
Rust

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