murasame 27976c2fb2 finish
Change-Id: I982b607976e26bf3bea46f726b381e67256cc47a
2023-05-25 20:02:41 +08:00

12 lines
240 B
Rust

// clippy2.rs
// Execute `rustlings hint clippy2` or use the `hint` watch subcommand for a hint.
fn main() {
let mut res = 42;
let option = Some(12);
if let Some(n) = option {
res += n;
}
println!("{}", res);
}