rust/tests/ui/alias-uninit-value.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

21 lines
393 B
Rust
Raw Normal View History

// run-pass
#![allow(non_camel_case_types)]
#![allow(dead_code)]
// Regression test for issue #374
2011-05-14 02:21:08 -05:00
// pretty-expanded FIXME #23616
enum sty { ty_nil, }
2011-05-14 02:21:08 -05:00
struct RawT {struct_: sty, cname: Option<String>, hash: usize}
2011-05-14 02:21:08 -05:00
fn mk_raw_ty(st: sty, cname: Option<String>) -> RawT {
return RawT {struct_: st, cname: cname, hash: 0};
2011-05-14 02:21:08 -05:00
}
pub fn main() { mk_raw_ty(sty::ty_nil, None::<String>); }