rust/src/test/compile-fail/self-missing-method.rs

14 lines
154 B
Rust
Raw Normal View History

// xfail-boot
// error-pattern:expecting ., found (
fn main() {
obj foo() {
fn m() {
self();
}
}
auto a = foo;
a.m();
}