]>
Commit | Line | Data |
---|---|---|
8faf50e0 | 1 | error[E0308]: mismatched types |
0731742a | 2 | --> $DIR/issue-12552.rs:6:5 |
8faf50e0 | 3 | | |
0731742a XL |
4 | LL | match t { |
5 | | - this match expression has type `std::result::Result<_, {integer}>` | |
532ac7d7 | 6 | LL | Some(k) => match k { |
8faf50e0 XL |
7 | | ^^^^^^^ expected enum `std::result::Result`, found enum `std::option::Option` |
8 | | | |
60c5eb7d XL |
9 | = note: expected enum `std::result::Result<_, {integer}>` |
10 | found enum `std::option::Option<_>` | |
8faf50e0 XL |
11 | |
12 | error[E0308]: mismatched types | |
0731742a | 13 | --> $DIR/issue-12552.rs:9:5 |
8faf50e0 | 14 | | |
532ac7d7 | 15 | LL | None => () |
8faf50e0 XL |
16 | | ^^^^ expected enum `std::result::Result`, found enum `std::option::Option` |
17 | | | |
60c5eb7d XL |
18 | = note: expected enum `std::result::Result<_, {integer}>` |
19 | found enum `std::option::Option<_>` | |
8faf50e0 XL |
20 | |
21 | error: aborting due to 2 previous errors | |
22 | ||
23 | For more information about this error, try `rustc --explain E0308`. |