2012-08-15 20:46:55 -05:00
|
|
|
struct cat {
|
2012-05-04 15:42:13 -05:00
|
|
|
priv {
|
2012-09-06 21:40:15 -05:00
|
|
|
mut meows : uint,
|
2012-09-07 21:04:40 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
priv impl cat {
|
2012-05-04 15:42:13 -05:00
|
|
|
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
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2012-09-05 17:58:43 -05:00
|
|
|
|
2012-05-04 15:42:13 -05:00
|
|
|
fn main() { }
|