]> git.lizzy.rs Git - rust.git/blob - tests/ui/patterns.rs
Auto merge of #4314 - chansuke:add-negation-to-is_empty, r=flip1995
[rust.git] / tests / ui / patterns.rs
1 #![allow(unused)]
2 #![warn(clippy::all)]
3
4 fn main() {
5     let v = Some(true);
6     match v {
7         Some(x) => (),
8         y @ _ => (),
9     }
10     match v {
11         Some(x) => (),
12         y @ None => (), // no error
13     }
14 }