1 error[E0308]: mismatched types
2 --> $DIR/issue-12552.rs:6:5
5 | - this expression has type `Result<_, {integer}>`
6 LL | Some(k) => match k {
7 | ^^^^^^^ expected enum `Result`, found enum `Option`
9 = note: expected enum `Result<_, {integer}>`
10 found enum `Option<_>`
11 help: try wrapping the pattern in `Ok`
13 LL | Ok(Some(k)) => match k {
16 error[E0308]: mismatched types
17 --> $DIR/issue-12552.rs:9:5
20 | - this expression has type `Result<_, {integer}>`
23 | ^^^^ expected enum `Result`, found enum `Option`
25 = note: expected enum `Result<_, {integer}>`
26 found enum `Option<_>`
27 help: try wrapping the pattern in `Ok`
32 error: aborting due to 2 previous errors
34 For more information about this error, try `rustc --explain E0308`.