2015-08-30 12:02:30 -05:00
|
|
|
#![feature(plugin)]
|
|
|
|
#![plugin(clippy)]
|
|
|
|
#![allow(unused)]
|
2017-05-17 07:19:44 -05:00
|
|
|
#![warn(clippy)]
|
2015-08-30 12:02:30 -05:00
|
|
|
|
|
|
|
fn main() {
|
|
|
|
let v = Some(true);
|
|
|
|
match v {
|
|
|
|
Some(x) => (),
|
2017-02-08 07:58:07 -06:00
|
|
|
y @ _ => (),
|
2015-08-30 12:02:30 -05:00
|
|
|
}
|
|
|
|
match v {
|
|
|
|
Some(x) => (),
|
|
|
|
y @ None => (), // no error
|
|
|
|
}
|
|
|
|
}
|