fork/rust
git clone https://git.julia.blue/fork/rust
49cae55760d
1.44.0
1error[E0615]: attempted to take value of method `speak` on type `Cat` 2 --> $DIR/assign-to-method.rs:22:10 3 | 4LL | nyan.speak = || println!("meow"); 5 | ^^^^^ method, not a field 6 | 7 = help: methods are immutable and cannot be assigned to 8 9error[E0615]: attempted to take value of method `speak` on type `Cat` 10 --> $DIR/assign-to-method.rs:23:10 11 | 12LL | nyan.speak += || println!("meow"); 13 | ^^^^^ method, not a field 14 | 15 = help: methods are immutable and cannot be assigned to 16 17error: aborting due to 2 previous errors 18 19For more information about this error, try `rustc --explain E0615`.