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

  obj foo() {
      fn m() {
          self();
      }
  }
  
  auto a = foo;
  a.m();
}