summaryrefslogtreecommitdiffstats
path: root/src/test/ui/alias-uninit-value.rs
blob: 932c93245e6f98411145d5117cd8f224eaf712a3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// run-pass

#![allow(non_camel_case_types)]
#![allow(dead_code)]



// Regression test for issue #374

// pretty-expanded FIXME #23616

enum sty { ty_nil, }

struct RawT {struct_: sty, cname: Option<String>, hash: usize}

fn mk_raw_ty(st: sty, cname: Option<String>) -> RawT {
    return RawT {struct_: st, cname: cname, hash: 0};
}

pub fn main() { mk_raw_ty(sty::ty_nil, None::<String>); }