about summary refs log tree commit diff
path: root/src/test/compile-fail/class-missing-self.rs
blob: 50c9ea99e0c5ad5018a368ef478ee740f3fabcc3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
struct cat {
  priv mut meows : uint,
}

priv impl cat {
    fn sleep() { loop{} }
    fn meow() {
      error!("Meow");
      meows += 1u; //~ ERROR unresolved name
      sleep();     //~ ERROR unresolved name
    }

}


 fn main() { }