about summary refs log tree commit diff
path: root/src/test/compile-fail/self-missing-method.rs
blob: c415c289da87bed8e28ceb3bec08d07fd2b10775 (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();
}