blob: 2c95f02bf3417ab5650627b0ed34eb7411563636 [file] [log] [blame]
#![deny(unreachable_patterns)]
fn main() {
let foo = Some(1);
match foo {
Some(_) => {/* ... */}
None => {/* ... */}
_ => {/* ... */} //~ ERROR unreachable pattern
}
}