about summary refs log tree commit diff
path: root/src/test/compile-fail/self-missing-method.rs
blob: af69d2ac1a4c8c3ae9e3e8b34d66763301a01d08 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// error-pattern:expecting ., found (
fn main() {

  obj foo() {
      fn m() {
          self();
      }
  }

  let a = foo;
  a.m();
}