rustlings/exercises/clippy/clippy2.rs
Zerotask 86dccc4ca7
docs(exercises): consistent exercise description
a description starts with the filename, has an optional description and
ends with help information
2021-04-25 11:29:39 +02:00

17 lines
279 B
Rust

// clippy2.rs
//
// Make me compile!
//
// If you need help, open the corresponding README.md or run: rustlings hint clippy2
// I AM NOT DONE
fn main() {
let mut res = 42;
let option = Some(12);
for x in option {
res += x;
}
println!("{}", res);
}