]> git.lizzy.rs Git - rust.git/blob - src/test/ui/block-result/issue-13624.stderr
Auto merge of #54720 - davidtwco:issue-51191, r=nikomatsakis
[rust.git] / src / test / ui / block-result / issue-13624.stderr
1 error[E0308]: mismatched types
2   --> $DIR/issue-13624.rs:17:5
3    |
4 LL |   pub fn get_enum_struct_variant() -> () {
5    |                                       -- expected `()` because of return type
6 LL |     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
12 error[E0308]: mismatched types
13   --> $DIR/issue-13624.rs:32:9
14    |
15 LL |         a::Enum::EnumStructVariant { x, y, z } => {
16    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected (), found enum `a::Enum`
17    |
18    = note: expected type `()`
19               found type `a::Enum`
20
21 error: aborting due to 2 previous errors
22
23 For more information about this error, try `rustc --explain E0308`.