]> git.lizzy.rs Git - rust.git/blob - src/test/ui/error-codes/E0001.rs
Add 'src/tools/rust-analyzer/' from commit '977e12a0bdc3e329af179ef3a9d466af9eb613bb'
[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 }