You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
since $b is not expr. As a workaround I had to use classical if-else block.
I'm not sure if this is intended design decision or just unexpected/unimplemented. I think it's good if I can specifiy $b both expr and pat, or there is some other smart way to solve it.
The text was updated successfully, but these errors were encountered:
I tried to write a macro which generates enum, FromStr, and ToStr:
(
mod $mod_name
is due to #4375.)However this fails to build:
because
$b
isexpr
and notpat
. Changing$b:expr
to$b:pat
gives another error:since
$b
is notexpr
. As a workaround I had to use classical if-else block.I'm not sure if this is intended design decision or just unexpected/unimplemented. I think it's good if I can specifiy
$b
bothexpr
andpat
, or there is some other smart way to solve it.The text was updated successfully, but these errors were encountered: