8 pub fn speak(&self) { self.meows += 1; }
11 fn cat(in_x : usize, in_y : isize) -> Cat {
19 let nyan : Cat = cat(52, 99);
20 nyan.speak = || println!("meow"); //~ ERROR attempted to take value of method
21 nyan.speak += || println!("meow"); //~ ERROR attempted to take value of method