// You cannot add Option<i32> to i32 directly. let x: i32 = 5; let y: Option<i32> = Some(10); // let sum = x + y; // ERROR: mismatched types
Rust’s ecosystem is built around powerful tools that simplify the developer experience. ultimate rust crash course
Propagate errors with ? operator (inside function returning Result ): // You cannot add Option<i32> to i32 directly