]> git.proxmox.com Git - rustc.git/blob - tests/ui/issues/issue-57741-1.stderr
New upstream version 1.69.0+dfsg1
[rustc.git] / tests / ui / issues / issue-57741-1.stderr
1 error[E0308]: mismatched types
2 --> $DIR/issue-57741-1.rs:14:9
3 |
4 LL | let y = match x {
5 | - this expression has type `Box<u32>`
6 LL | S::A { a } | S::B { b: a } => a,
7 | ^^^^^^^^^^ expected `Box<u32>`, found `S`
8 |
9 = note: expected struct `Box<u32>`
10 found enum `S`
11
12 error[E0308]: mismatched types
13 --> $DIR/issue-57741-1.rs:14:22
14 |
15 LL | let y = match x {
16 | - this expression has type `Box<u32>`
17 LL | S::A { a } | S::B { b: a } => a,
18 | ^^^^^^^^^^^^^ expected `Box<u32>`, found `S`
19 |
20 = note: expected struct `Box<u32>`
21 found enum `S`
22
23 error: aborting due to 2 previous errors
24
25 For more information about this error, try `rustc --explain E0308`.