diff options
Diffstat (limited to 'tests/ui/enum/zero-variant-enum-pattern-matching-3037.rs')
| -rw-r--r-- | tests/ui/enum/zero-variant-enum-pattern-matching-3037.rs | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/ui/enum/zero-variant-enum-pattern-matching-3037.rs b/tests/ui/enum/zero-variant-enum-pattern-matching-3037.rs new file mode 100644 index 00000000000..7a7abb1c67c --- /dev/null +++ b/tests/ui/enum/zero-variant-enum-pattern-matching-3037.rs @@ -0,0 +1,16 @@ +// https://github.com/rust-lang/rust/issues/3037 +//@ run-pass +#![allow(dead_code)] +#![allow(non_camel_case_types)] + +enum what { } + +fn what_to_string(x: what) -> String +{ + match x { + } +} + +pub fn main() +{ +} |
