1 error[E0615]: attempted to take value of method `speak` on type `Cat`
2 --> $DIR/assign-to-method.rs:20:8
4 LL | nyan.speak = || println!("meow");
7 = help: methods are immutable and cannot be assigned to
9 error[E0615]: attempted to take value of method `speak` on type `Cat`
10 --> $DIR/assign-to-method.rs:21:8
12 LL | nyan.speak += || println!("meow");
15 = help: methods are immutable and cannot be assigned to
17 error: aborting due to 2 previous errors
19 For more information about this error, try `rustc --explain E0615`.