rust/src/test/compile-fail/terr-sorts.rs
2012-08-20 22:00:06 -07:00

10 lines
169 B
Rust

type foo = {a: int, b: int};
type bar = @foo;
fn want_foo(f: foo) {}
fn have_bar(b: bar) {
want_foo(b); //~ ERROR (expected record but found @-ptr)
}
fn main() {}