aboutsummaryrefslogtreecommitdiff
path: root/src/test/compile-fail/no-self-dispatch.rs
blob: 324d1af97ae3636eb56a9b9e0ade6c0265795be2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// xfail-stage0
// xfail-stage1
// xfail-stage2
// error-pattern: unresolved identifier
obj oT() {
  fn get() -> int {
    ret 3;
  }
  fn foo() {
    auto c = get();
  }
}
fn main() {
}