File tree Expand file tree Collapse file tree 1 file changed +0
-10
lines changed Expand file tree Collapse file tree 1 file changed +0
-10
lines changed Original file line number Diff line number Diff line change @@ -5,11 +5,6 @@ LL | let Bar::Present(z) = self else {
5
5
| ^^^^^^^^^^^^^^^ ---- this expression has type `&mut Foo`
6
6
| |
7
7
| expected struct `Foo`, found enum `Bar`
8
- |
9
- help: you might have meant to use field `0` whose type is `Bar`
10
- |
11
- LL | let Bar::Present(z) = self.0 else {
12
- | ~~~~~~
13
8
14
9
error[E0308]: mismatched types
15
10
--> $DIR/let-else-deref-coercion.rs:68:13
@@ -18,11 +13,6 @@ LL | let Bar(z) = x;
18
13
| ^^^^^^ - this expression has type `&mut irrefutable::Foo`
19
14
| |
20
15
| expected struct `irrefutable::Foo`, found struct `irrefutable::Bar`
21
- |
22
- help: you might have meant to use field `0` whose type is `irrefutable::Bar`
23
- |
24
- LL | let Bar(z) = x.0;
25
- | ~~~
26
16
27
17
error: aborting due to 2 previous errors
28
18
You can’t perform that action at this time.
0 commit comments