Skip to content

Commit

Permalink
update let-else-deref-coercion for latest nightly error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
cormacrelf committed Dec 12, 2021
1 parent 8cf14a3 commit fce1dd9
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions src/test/ui/let-else/let-else-deref-coercion.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,6 @@ LL | let Bar::Present(z) = self else {
| ^^^^^^^^^^^^^^^ ---- this expression has type `&mut Foo`
| |
| expected struct `Foo`, found enum `Bar`
|
help: you might have meant to use field `0` whose type is `Bar`
|
LL | let Bar::Present(z) = self.0 else {
| ~~~~~~

error[E0308]: mismatched types
--> $DIR/let-else-deref-coercion.rs:68:13
Expand All @@ -18,11 +13,6 @@ LL | let Bar(z) = x;
| ^^^^^^ - this expression has type `&mut irrefutable::Foo`
| |
| expected struct `irrefutable::Foo`, found struct `irrefutable::Bar`
|
help: you might have meant to use field `0` whose type is `irrefutable::Bar`
|
LL | let Bar(z) = x.0;
| ~~~

error: aborting due to 2 previous errors

Expand Down

0 comments on commit fce1dd9

Please # to comment.