]> git.proxmox.com Git - rustc.git/blob - src/test/ui/issues/issue-2848.rs
New upstream version 1.60.0+dfsg1
[rustc.git] / src / test / ui / issues / issue-2848.rs
1 #[allow(non_camel_case_types)]
2
3 mod bar {
4 pub enum foo {
5 alpha,
6 beta,
7 charlie
8 }
9 }
10
11 fn main() {
12 use bar::foo::{alpha, charlie};
13 match alpha {
14 alpha | beta => {} //~ ERROR variable `beta` is not bound in all patterns
15 charlie => {}
16 }
17 }