rust/src/test/ui/block-result/issue-13624.stderr
Guillaume Gomez 2e104a77cf update tests
2018-03-14 00:53:24 +01:00

24 lines
802 B
Plaintext

error[E0308]: mismatched types
--> $DIR/issue-13624.rs:17:5
|
LL | pub fn get_enum_struct_variant() -> () {
| -- expected `()` because of return type
LL | Enum::EnumStructVariant { x: 1, y: 2, z: 3 }
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected (), found enum `a::Enum`
|
= note: expected type `()`
found type `a::Enum`
error[E0308]: mismatched types
--> $DIR/issue-13624.rs:32:9
|
LL | a::Enum::EnumStructVariant { x, y, z } => {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected (), found enum `a::Enum`
|
= note: expected type `()`
found type `a::Enum`
error: aborting due to 2 previous errors
For more information about this error, try `rustc --explain E0308`.