1 error[E0308]: mismatched types
2 --> $DIR/issue-11844.rs:16:9
4 LL | Ok(a) => //~ ERROR: mismatched types
5 | ^^^^^ expected enum `std::option::Option`, found enum `std::result::Result`
7 = note: expected type `std::option::Option<std::boxed::Box<{integer}>>`
8 found type `std::result::Result<_, _>`
10 error: aborting due to previous error
12 For more information about this error, try `rustc --explain E0308`.