1
0
mirror of https://github.com/rust-lang/rustlings.git synced 2025-02-03 13:11:36 +02:00
2024-04-17 23:34:27 +02:00

9 lines
134 B
Rust

fn main() {
let mut res = 42;
let option = Some(12);
for x in option {
res += x;
}
println!("{}", res);
}