cargo run --release
Compiling rusty-shooter v0.13.0 (/home/pavel/rusty-shooter)
error[E0599]: no method named visit found for struct HashMap in the current scope
--> src/leader_board.rs:145:29
|
145 | self.personal_score.visit("PersonalScore", visitor)?;
| ^^^^^ method not found in HashMap<std::string::String, PersonalScore>
error[E0599]: no method named visit found for struct HashMap in the current scope
--> src/leader_board.rs:146:25
|
146 | self.team_score.visit("TeamScore", visitor)?;
| ^^^^^ method not found in HashMap<Team, u32>
For more information about this error, try rustc --explain E0599.
error: could not compile rusty-shooter due to 2 previous errors
The demo functionality is not fully implemented. Therefore, to see the demo in action, you need to comment out the lines 145 and 146, on:
src/leader_board.rs
cargo run --release Compiling rusty-shooter v0.13.0 (/home/pavel/rusty-shooter) error[E0599]: no method named
visit
found for structHashMap
in the current scope --> src/leader_board.rs:145:29 | 145 | self.personal_score.visit("PersonalScore", visitor)?; | ^^^^^ method not found inHashMap<std::string::String, PersonalScore>
error[E0599]: no method named
visit
found for structHashMap
in the current scope --> src/leader_board.rs:146:25 | 146 | self.team_score.visit("TeamScore", visitor)?; | ^^^^^ method not found inHashMap<Team, u32>
For more information about this error, try
rustc --explain E0599
. error: could not compilerusty-shooter
due to 2 previous errors