]>
Commit | Line | Data |
---|---|---|
dfeec247 XL |
1 | error[E0308]: mismatched types |
2 | --> $DIR/pat-struct-field-expr-has-type.rs:7:16 | |
3 | | | |
4 | LL | match (S { f: 42 }) { | |
5 | | ------------- this expression has type `S` | |
6 | LL | S { f: Ok(_) } => {} | |
6a06907d | 7 | | ^^^^^ expected `u8`, found enum `Result` |
dfeec247 XL |
8 | | |
9 | = note: expected type `u8` | |
6a06907d | 10 | found enum `Result<_, _>` |
dfeec247 XL |
11 | |
12 | error: aborting due to previous error | |
13 | ||
14 | For more information about this error, try `rustc --explain E0308`. |