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

13 lines
137 B
Rust
Raw Normal View History

2011-07-27 14:48:34 +02:00
// error-pattern:expecting ., found (
fn main() {
obj foo() {
fn m() {
self();
}
}
let a = foo;
a.m();
}