]> git.lizzy.rs Git - rust.git/blob - src/test/ui/error-codes/E0001.rs
Merge commit '0c89065b934397b62838fe3e4ef6f6352fc52daf' into libgccjit-codegen
[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 }