mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-12 15:04:03 +00:00
WIP
This commit is contained in:
parent
b7d6934ef3
commit
fb76c25729
21
src/test/run-pass/compare.rs
Normal file
21
src/test/run-pass/compare.rs
Normal file
@ -0,0 +1,21 @@
|
||||
use std;
|
||||
import std::option;
|
||||
import std::option::none;
|
||||
|
||||
tag sty {
|
||||
ty_nil;
|
||||
}
|
||||
|
||||
type raw_t = rec(sty struct,
|
||||
option::t[str] cname,
|
||||
uint hash);
|
||||
|
||||
fn mk_raw_ty(sty st, &option::t[str] cname) -> raw_t {
|
||||
ret rec(struct=st,
|
||||
cname=cname,
|
||||
hash=0u);
|
||||
}
|
||||
|
||||
fn main() {
|
||||
mk_raw_ty(ty_nil, none[str]);
|
||||
}
|
Loading…
Reference in New Issue
Block a user