]> git.lizzy.rs Git - rust.git/blob - src/test/ui/block-result/issue-13624.stderr
Rollup merge of #95353 - jyn514:invalid-filter-hard-error, r=Mark-Simulacrum
[rust.git] / src / test / ui / block-result / issue-13624.stderr
1 error[E0308]: mismatched types
2   --> $DIR/issue-13624.rs:7: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 `Enum`
8
9 error[E0308]: mismatched types
10   --> $DIR/issue-13624.rs:20:9
11    |
12 LL |       match enum_struct_variant {
13    |             ------------------- this expression has type `()`
14 LL |         a::Enum::EnumStructVariant { x, y, z } => {
15    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `()`, found enum `Enum`
16
17 error: aborting due to 2 previous errors
18
19 For more information about this error, try `rustc --explain E0308`.