summaryrefslogtreecommitdiffstats
path: root/src/test/ui/issues/issue-50442.rs
blob: 25c7dde7a5fb7f89f32f0353fe8cdee98d83a12f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// run-pass
#![allow(dead_code)]
enum Void {}

enum Foo {
    A(i32),
    B(Void),
    C(i32)
}

fn main() {
    let _foo = Foo::A(0);
}