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

13 lines
155 B
Rust

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