1 error[E0308]: mismatched types
2 --> $DIR/issue-13466.rs:8:9
4 LL | let _x: usize = match Some(1) {
5 | ------- this expression has type `Option<{integer}>`
7 | ^^^^^ expected `Option<{integer}>`, found `Result<_, _>`
9 = note: expected enum `Option<{integer}>`
10 found enum `Result<_, _>`
12 error[E0308]: mismatched types
13 --> $DIR/issue-13466.rs:14:9
15 LL | let _x: usize = match Some(1) {
16 | ------- this expression has type `Option<{integer}>`
18 LL | Err(e) => panic!(e)
19 | ^^^^^^ expected `Option<{integer}>`, found `Result<_, _>`
21 = note: expected enum `Option<{integer}>`
22 found enum `Result<_, _>`
24 error: aborting due to 2 previous errors
26 For more information about this error, try `rustc --explain E0308`.