diff options
Diffstat (limited to '')
-rw-r--r-- | src/test/ui/issues/issue-2848.rs | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/test/ui/issues/issue-2848.rs b/src/test/ui/issues/issue-2848.rs new file mode 100644 index 000000000..e0049bf8f --- /dev/null +++ b/src/test/ui/issues/issue-2848.rs @@ -0,0 +1,17 @@ +#[allow(non_camel_case_types)] + +mod bar { + pub enum foo { + alpha, + beta, + charlie + } +} + +fn main() { + use bar::foo::{alpha, charlie}; + match alpha { + alpha | beta => {} //~ ERROR variable `beta` is not bound in all patterns + charlie => {} + } +} |