fork/rust
git clone https://git.julia.blue/fork/rust
5e1a799842b
1.41.0
1error[E0308]: mismatched types 2 --> $DIR/issue-13624.rs:7:5 3 | 4LL | pub fn get_enum_struct_variant() -> () { 5 | -- expected `()` because of return type 6LL | Enum::EnumStructVariant { x: 1, y: 2, z: 3 } 7 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `()`, found enum `a::Enum` 8 9error[E0308]: mismatched types 10 --> $DIR/issue-13624.rs:20:9 11 | 12LL | match enum_struct_variant { 13 | ------------------- this match expression has type `()` 14LL | a::Enum::EnumStructVariant { x, y, z } => { 15 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `()`, found enum `a::Enum` 16 17error: aborting due to 2 previous errors 18 19For more information about this error, try `rustc --explain E0308`.