rust/src/test/run-pass/alias-uninit-value.rs
Marijn Haverbeke fc6b7c8b38 Reformat for new mode syntax, step 1
Long lines were fixed in a very crude way, as I'll be following up
with another reformat in a bit.
2011-09-12 12:04:14 +02:00

17 lines
328 B
Rust

// Regression test for issue #374
use std;
import std::option;
import std::option::none;
tag sty { ty_nil; }
type raw_t = {struct: sty, cname: option::t<str>, hash: uint};
fn mk_raw_ty(st: sty, cname: option::t<str>) -> raw_t {
ret {struct: st, cname: cname, hash: 0u};
}
fn main() { mk_raw_ty(ty_nil, none::<str>); }