error[E0596]: cannot borrow `user` as mutable, as it is not declared as mutable
--> prog.rs:18:3
|
13 | let user = Person {
| ---- help: consider changing this to be mutable: `mut user`
...
18 | user.have_birthday();
| ^^^^ cannot borrow as mutable
error: aborting due to previous error
For more information about this error, try `rustc --explain E0596`.