rust/src/test/run-pass/regions-creating-enums5.rs

11 lines
135 B
Rust
Raw Normal View History

enum ast {
2012-04-21 12:04:58 -05:00
num(uint),
add(&ast, &ast)
}
fn mk_add_ok(x: &a.ast, y: &a.ast, z: &ast) -> ast/&a {
add(x, y)
}
fn main() {
}