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

13 lines
140 B
Rust
Raw Normal View History

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