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
I'm writing an FFI binding with a number of structs that have a fixed part and a variable part. I tried to factor it using a macro which takes the variable part as a sequence of token trees (to allow zero or more fields, possibly with #[cfg] modifiers), but I'm getting a strange parse error; golfed to:
I'm writing an FFI binding with a number of structs that have a fixed part and a variable part. I tried to factor it using a macro which takes the variable part as a sequence of token trees (to allow zero or more fields, possibly with
#[cfg]
modifiers), but I'm getting a strange parse error; golfed to:(playpen: http://is.gd/i4195j)
If I change
:tt
to:ident
the short example works, but that doesn't work for my real code which uses a repeated token tree.Is this supposed to work with
:tt
?The text was updated successfully, but these errors were encountered: