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