2016-11-29 01:10:26 -06:00
|
|
|
#![deny(unreachable_patterns)]
|
|
|
|
|
2016-05-12 08:17:02 -05:00
|
|
|
fn main() {
|
|
|
|
let foo = Some(1);
|
|
|
|
match foo {
|
2016-11-29 01:10:26 -06:00
|
|
|
Some(_) => {/* ... */}
|
2016-05-12 08:17:02 -05:00
|
|
|
None => {/* ... */}
|
2016-11-29 01:10:26 -06:00
|
|
|
_ => {/* ... */} //~ ERROR unreachable pattern
|
2016-05-12 08:17:02 -05:00
|
|
|
}
|
|
|
|
}
|