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
However, if you wrap the macro invocation in parens...
{ (stringify!(bees)).to_owned() }
...it works.
The tricky thing about this problem is that, when the parser sees stringify!, it doesn't know whether it'll be a statement macro or an expression macro; currently, it commits to the former, which breaks if the invocation has to be an expression.
The text was updated successfully, but these errors were encountered:
Thursday Apr 18, 2013 at 19:37 GMT
For earlier discussion, see rust-lang/rust#5941
This issue was labelled with: A-parser, A-syntaxext, P-high in the Rust repository
However, if you wrap the macro invocation in parens...
...it works.
The tricky thing about this problem is that, when the parser sees
stringify!
, it doesn't know whether it'll be a statement macro or an expression macro; currently, it commits to the former, which breaks if the invocation has to be an expression.The text was updated successfully, but these errors were encountered: