Closed fneddy closed 7 years ago
this happens here. The macro parser somehow does not like the expand in the tuple with only one element $($rolename),*
but strangely this $($rolename,)*
expands without a problem, through it generates invalid rust code.
Yes, I stumbled upon the same, it's a strange issue, I found the somehow simmilar point here in docs if you Ctrl-F
for impl<A> Clone for (A,) where A: Clone
you'll see that the tuple with one element requires (A,)
a comma.
I'll ask around
Ah, that's because Rust can't unserstand if (expr) is a braced expression or a tuple.
currently it is not possible to create a Q_LISTMODEL! with only one member: