1 error[E0308]: mismatched types
2 --> $DIR/issue-11844.rs:6:9
5 | - this expression has type `Option<Box<{integer}>>`
7 | ^^^^^ expected enum `Option`, found enum `Result`
9 = note: expected enum `Option<Box<{integer}>>`
10 found enum `Result<_, _>`
12 error: aborting due to previous error
14 For more information about this error, try `rustc --explain E0308`.