mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-17 05:25:37 +03:00
Test case for issue #115.
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
//xfail-stage1
|
||||
//xfail-stage2
|
||||
//xfail-stage3
|
||||
|
||||
// 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;
|
||||
}
|
||||
Reference in New Issue
Block a user