Can't destructure a boxed struct without an intermediate let binding #47376
Labels
C-bug
Category: This is a bug.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
This code fails to compile:
However inserting an intermediate let binding in between the box deref and the destructure fixes it:
This feels like a bug.
Affected versions:
rustc 1.23.0 (766bd11c8 2018-01-01)
rustc 1.25.0-nightly (73ac5d6a8 2018-01-11)
The text was updated successfully, but these errors were encountered: