Destructuring boxed values

Hi,

Is it somehow possible to destructure a nested enum if the inner values are boxed?

Here is an example code with the issue: Rust Playground

Thanks in advance.

On nightly you can use box patterns, like box Expr::Val(_).

2 Likes

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.