rust/src/test/compile-fail/no-self-dispatch.rs

15 lines
187 B
Rust
Raw Normal View History

// xfail-stage0
// xfail-stage1
// xfail-stage2
// error-pattern: unresolved identifier
obj oT() {
fn get() -> int {
ret 3;
}
fn foo() {
auto c = get();
}
}
fn main() {
}