format_with
misses bounds on the Dummy struct and its instantiation.
#55
Labels
bug
The crate does not work as expected
Consider the following rust code:
This fails to build with
Expanded, the code looks like:
With the code expanded, the error becomes:
The code around line 23 is:
So what is missing here is the original bound for T, because Qux needs it (as per the error message).
But adding that is not enough in this case, because fixing up the expanded code still fails, with a different error:
What works, here, is
Dummy::<'a, '_, T>(...)
.The text was updated successfully, but these errors were encountered: