]> git.lizzy.rs Git - rust.git/blob - src/test/ui/error-codes/E0001.rs
Merge commit '61eb38aeda6cb54b93b872bf503d70084c4d621c' 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 }