Skip to content
Quiz · Enums and match · lesson 3 of 8

Quiz — Option + 1

What happens when this program is built and run?

Rust
fn main() {
    let x = Some(5);
    println!("{:?}", x + 1);
}