Stanislav Pankrashin bd72dd98d6 Revert "almost there"
This reverts commit a6c8169de1d4f62d272d42095b3909b00c5cbd91.
2022-06-23 17:05:31 +12:00

14 lines
233 B
Rust

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