rust/src/test/run-pass/alias-uninit-value.rs
Tim Chevalier e5d095d67e Change option::t to option
Now that core exports "option" as a synonym for option::t, search-and-
replace option::t with option.

The only place that still refers to option::t are the modules in libcore
that use option, because fixing this requires a new snapshot
(forthcoming).
2012-01-31 17:05:20 -08:00

17 lines
313 B
Rust

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