]> git.lizzy.rs Git - rust.git/blob - src/test/ui/error-codes/E0001.rs
Merge commit '7bfc26ec8e7a454786668e7e52ffe527fc649735' into clippyup
[rust.git] / src / test / ui / error-codes / E0001.rs
1 #![deny(unreachable_patterns)]
2
3 fn main() {
4     let foo = Some(1);
5     match foo {
6         Some(_) => {/* ... */}
7         None => {/* ... */}
8         _ => {/* ... */} //~ ERROR unreachable pattern
9     }
10 }