]> git.proxmox.com Git - rustc.git/blame - src/test/ui/pattern/pat-struct-field-expr-has-type.stderr
New upstream version 1.52.0~beta.3+dfsg1
[rustc.git] / src / test / ui / pattern / pat-struct-field-expr-has-type.stderr
CommitLineData
dfeec247
XL
1error[E0308]: mismatched types
2 --> $DIR/pat-struct-field-expr-has-type.rs:7:16
3 |
4LL | match (S { f: 42 }) {
5 | ------------- this expression has type `S`
6LL | 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
12error: aborting due to previous error
13
14For more information about this error, try `rustc --explain E0308`.