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

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

10 lines
179 B
Rust
Raw Normal View History

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