@matzipan yeah, proc-macros are strange and mysterious 😅
I had a similar problem once (though just because I didn't know about the syntax, not because it was broken on nightly) ...
referring to a type in the derive macro like T::do_something()
is only valid if T is not generic.
This syntax works always: <T>::do_something()
(expanding to, for example, <Option<U>>::do_something()
)
Your initial error message reminded me of this problem, though I'm not sure the cause is the same.
=> More informations about this toot | View the thread | More toots from decathorpe@mastodon.social
=> View matzipan@hachyderm.io profile
text/gemini
This content has been proxied by September (ba2dc).