Skip to content

Commit fce1dd9

Browse files
committed
update let-else-deref-coercion for latest nightly error messages
1 parent 8cf14a3 commit fce1dd9

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

src/test/ui/let-else/let-else-deref-coercion.stderr

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,6 @@ LL | let Bar::Present(z) = self else {
55
| ^^^^^^^^^^^^^^^ ---- this expression has type `&mut Foo`
66
| |
77
| 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-
| ~~~~~~
138

149
error[E0308]: mismatched types
1510
--> $DIR/let-else-deref-coercion.rs:68:13
@@ -18,11 +13,6 @@ LL | let Bar(z) = x;
1813
| ^^^^^^ - this expression has type `&mut irrefutable::Foo`
1914
| |
2015
| 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-
| ~~~
2616

2717
error: aborting due to 2 previous errors
2818

0 commit comments

Comments
 (0)