rust/src/test/compile-fail/regions-creating-enums3.rs
Gareth Daniel Smith 6d86969260 change the test suite //! kind syntax to //~ kind in order to avoid a
conflict with the new single-line-sugared-inner-doc-comment (`//! ...`).
2012-06-30 12:23:59 +01:00

11 lines
201 B
Rust

enum ast/& {
num(uint),
add(&ast, &ast)
}
fn mk_add_bad1(x: &a.ast, y: &b.ast) -> ast/&a {
add(x, y) //~ ERROR mismatched types: expected `&a.ast/&a` but found `&b.ast/&b`
}
fn main() {
}