Stanislav Pankrashin 849a1ec933 Revert "Revert "almost there""
This reverts commit bd72dd98d6a91609bfc357f4d85689420e56d1a7.
2022-06-23 17:05:41 +12:00

12 lines
223 B
Rust

// clippy2.rs
// Make me compile! Execute `rustlings hint clippy2` for hints :)
fn main() {
let mut res = 42;
let option = Some(12);
if let Some(x) = option {
res += x;
}
println!("{}", res);
}