fork/rust
git clone https://git.julia.blue/fork/rust
4fb7144ed15
1.43.0
1error[E0308]: mismatched types 2 --> $DIR/issue-57741-1.rs:14:9 3 | 4LL | let y = match x { 5 | - this 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 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`.