User:IsHavvy/Sandbox

Have an idea for a procedural macro, but you've never made one before? Follow along with this example as we make one.

This example will create an attribute macro that is applied to trait implementations to also add an inherent implementation of the methods. This could be used, for example, on types that exist only to implement a specific trait so that they can be used without importing that trait. Although, in practice, that never happens.

So, for the given input of:

We should have an output of: