2012-04-21 12:04:58 -05:00
|
|
|
enum ast/& {
|
|
|
|
num(uint),
|
|
|
|
add(&ast, &ast)
|
|
|
|
}
|
|
|
|
|
|
|
|
fn mk_add_bad1(x: &a.ast, y: &b.ast) -> ast/&a {
|
2012-06-30 06:23:59 -05:00
|
|
|
add(x, y) //~ ERROR mismatched types: expected `&a.ast/&a` but found `&b.ast/&b`
|
2012-04-21 12:04:58 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
}
|