]> git.lizzy.rs Git - rust.git/blob - tests/ui/alias-uninit-value.rs
Rollup merge of #107740 - oli-obk:lock_tcx, r=petrochenkov
[rust.git] / tests / ui / alias-uninit-value.rs
1 // run-pass
2
3 #![allow(non_camel_case_types)]
4 #![allow(dead_code)]
5
6
7
8 // Regression test for issue #374
9
10 // pretty-expanded FIXME #23616
11
12 enum sty { ty_nil, }
13
14 struct RawT {struct_: sty, cname: Option<String>, hash: usize}
15
16 fn mk_raw_ty(st: sty, cname: Option<String>) -> RawT {
17     return RawT {struct_: st, cname: cname, hash: 0};
18 }
19
20 pub fn main() { mk_raw_ty(sty::ty_nil, None::<String>); }