]> git.lizzy.rs Git - rust.git/blob - src/test/ui/pattern/pat-struct-field-expr-has-type.stderr
Rollup merge of #105555 - krasimirgg:llvm-int-opt-2, r=cuviper
[rust.git] / src / test / ui / pattern / pat-struct-field-expr-has-type.stderr
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(_) } => {}
7    |                ^^^^^ expected `u8`, found enum `Result`
8    |
9    = note: expected type `u8`
10               found enum `Result<_, _>`
11
12 error: aborting due to previous error
13
14 For more information about this error, try `rustc --explain E0308`.