]> git.lizzy.rs Git - rust.git/blob - src/test/ui/error-codes/E0001.rs
Rollup merge of #97915 - tbu-:pr_os_string_fmt_write, r=joshtriplett
[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 }