Toot

Written by Fabio Valentini on 2025-01-19 at 23:15

@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

Mentions

=> View matzipan@hachyderm.io profile

Tags

Proxy Information
Original URL
gemini://mastogem.picasoft.net/toot/113857564427386759
Status Code
Success (20)
Meta
text/gemini
Capsule Response Time
223.926424 milliseconds
Gemini-to-HTML Time
0.399141 milliseconds

This content has been proxied by September (ba2dc).