rust/src/test/run-pass/interface-narrowing.rs
2011-08-31 16:32:16 +02:00

18 lines
191 B
Rust

//xfail-test
// Test case for issue #115.
type base =
obj {
fn foo();
};
obj derived() {
fn foo() {}
fn bar() {}
}
fn main() {
let d = derived();
let b:base = d as base;
}