fork/rust
git clone https://git.julia.blue/fork/rust
4560ea788cb
1.39.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 | 9 = note: expected type `()` 10 found type `a::Enum` 11 12error[E0308]: mismatched types 13 --> $DIR/issue-13624.rs:22:9 14 | 15LL | match enum_struct_variant { 16 | ------------------- this match expression has type `()` 17LL | a::Enum::EnumStructVariant { x, y, z } => { 18 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected (), found enum `a::Enum` 19 | 20 = note: expected type `()` 21 found type `a::Enum` 22 23error: aborting due to 2 previous errors 24 25For more information about this error, try `rustc --explain E0308`.