Just for my benefit, in Nathan's example:
>
> match myfoo {
> bar => /* ... stuff ... */
> }
>
where bar is not an enum, is bar now an exact synonym for myfoo?
If so, maybe the compiler could warn that you probably didn't want to
do such a simple 1:1 binding? And maybe if you did want this binding,
you could suppress the warning by putting (bar), which is reminiscent
of a 1-element tuple, otherwise disallowed.
Pete
_______________________________________________
Rust-dev mailing list
[email protected]
https://mail.mozilla.org/listinfo/rust-dev