fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #69444 - pietroalbini:stable-next-final-v2-new, r=pietroalbinif3e1a954d2e

1.41.1
891 B25 linesraw
1error[E0308]: mismatched types
2  --> $DIR/issue-57741-1.rs:14:9
3   |
4LL |     let y = match x {
5   |                   - this match expression has type `std::boxed::Box<u32>`
6LL |         S::A { a } | S::B { b: a } => a,
7   |         ^^^^^^^^^^ expected struct `std::boxed::Box`, found enum `S`
8   |
9   = note: expected struct `std::boxed::Box<u32>`
10                found enum `S`
11
12error[E0308]: mismatched types
13  --> $DIR/issue-57741-1.rs:14:22
14   |
15LL |     let y = match x {
16   |                   - this match expression has type `std::boxed::Box<u32>`
17LL |         S::A { a } | S::B { b: a } => a,
18   |                      ^^^^^^^^^^^^^ expected struct `std::boxed::Box`, found enum `S`
19   |
20   = note: expected struct `std::boxed::Box<u32>`
21                found enum `S`
22
23error: aborting due to 2 previous errors
24
25For more information about this error, try `rustc --explain E0308`.