about summary refs log tree commit diff
path: root/tests/ui/enum/zero-variant-enum-pattern-matching-3037.rs
blob: 7a7abb1c67c7c4db807c06be135b79c5de54db59 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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()
{
}