summaryrefslogtreecommitdiff
path: root/exercises/clippy/clippy2.rs
blob: 37af9ed0f2c470ce23ff7fa74f3aa616a9b864f7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// 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);
}