mirror of
https://github.com/rust-lang/rustlings.git
synced 2024-12-27 15:56:28 +00:00
14 lines
233 B
Rust
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);
|
||
|
}
|