Core Beginner
00 Variables
Rust bindings are immutable unless you say otherwise, and constants carry an explicit type.
Make total mutable so with_bonus can add the bonus and return the new score.
Hints
letis immutable by default -- addmutto reassign.
Reveal solution
fn with_bonus(score: i32, bonus: i32) -> i32 {
let mut total = score;
total = total + bonus;
total
}