2012-08-15 20:46:55 -05:00
|
|
|
struct cat {
|
2012-05-04 15:42:13 -05:00
|
|
|
priv {
|
|
|
|
let mut meows : uint;
|
|
|
|
fn sleep() { loop{} }
|
|
|
|
fn meow() {
|
2012-08-22 19:24:52 -05:00
|
|
|
error!("Meow");
|
2012-06-30 06:23:59 -05:00
|
|
|
meows += 1u; //~ ERROR unresolved name
|
|
|
|
sleep(); //~ ERROR unresolved name
|
2012-05-04 15:42:13 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
new(in_x : uint) { self.meows = in_x; }
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() { }
|