]> git.lizzy.rs Git - rust.git/blob - tests/ui/patterns.rs
Adapt the *.stderr files of the ui-tests to the tool_lints
[rust.git] / tests / ui / patterns.rs
1 #![feature(tool_lints)]
2
3 #![allow(unused)]
4 #![warn(clippy::all)]
5
6 fn main() {
7     let v = Some(true);
8     match v {
9         Some(x) => (),
10         y @ _   => (),
11     }
12     match v {
13         Some(x)  => (),
14         y @ None => (),  // no error
15     }
16 }