Closed
Description
See the testcase here: https://is.gd/WZh43I
I'd normally run this by a few people before filing an issue, but #rust is quiet on a Saturday night. ;-)
@Manishearth thoughts?
See the testcase here: https://is.gd/WZh43I
I'd normally run this by a few people before filing an issue, but #rust is quiet on a Saturday night. ;-)
@Manishearth thoughts?
Activity
Manishearth commentedon Jan 8, 2017
Trait resolution basically doesn't know how to figure out that two types are equal in the case of "dual traits".
This is one of the inevitable issues @nox is going to hit in his Servo script bindings refactor 😉
I do wish we had a more formalized notion of type families that could be used to better instruct the compiler in these cases. @nikomatsakis was talking about this in his blog, and I've personally found the need for a family-trait type situation more than once, both when modeling dualities and when modeling generic abstractions over sets of types like you're trying to do.
Bug 1325734 - Parameterize the style traversal on TElement instead of…
Bug 1325734 - Parameterize the style traversal on TElement instead of…
Mark-Simulacrum commentedon May 19, 2017
This appears to work today; E-needstest.
nikomatsakis commentedon May 25, 2017
I don't think it works necessarily -- if you remove the bound that @bholley highlighted, you still get an error.
nikomatsakis commentedon May 25, 2017
The example that @bholley expected to pass (and I think he is right that it should) is this one:
estebank commentedon Nov 5, 2019
Current output:
7 remaining items