rust/src/test/compile-fail/regions-iface-3.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

15 lines
355 B
Rust

iface get_ctxt/& {
fn get_ctxt() -> &self.uint;
}
fn make_gc1(gc: get_ctxt/&a) -> get_ctxt/&b {
ret gc; //~ ERROR mismatched types: expected `get_ctxt/&b` but found `get_ctxt/&a`
}
fn make_gc2(gc: get_ctxt/&a) -> get_ctxt/&b {
ret gc as get_ctxt; //~ ERROR mismatched types: expected `get_ctxt/&b` but found `get_ctxt/&a`
}
fn main() {
}