rust/src/test/run-pass/regions-creating-enums5.rs
Niko Matsakis b9aa9def85 infer when types are region parameterized rather than requiring /&
- removes various fields from various variants in the AST
- also update tests not to use this notation
2012-07-11 14:41:41 -07:00

11 lines
135 B
Rust

enum ast {
num(uint),
add(&ast, &ast)
}
fn mk_add_ok(x: &a.ast, y: &a.ast, z: &ast) -> ast/&a {
add(x, y)
}
fn main() {
}