JelteF / derive_more

Some more derive(Trait) options
MIT License
1.74k stars 123 forks source link

Add compile_fail test for on purpose limited bounds #393

Closed JelteF closed 3 months ago

JelteF commented 3 months ago

Resolves #392 Related to #371

Synopsis

Before #371 this code would compile without any issues, but that would actually hide the problem that the resulting Debug implementation was never applicable, because the bounds could not be satisfied.

Solution

This problem was already solved by #371, but this adds a test case to ensure that we don't regress here again.

Checklist