Rustc selects the wrong impl for trait objects when a trait is implemented multiple times with different parameters on the same struct #26339
Labels
P-high
High priority
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
In the following test case, rustc selects the second implementation instead of the first one :
This can lead to uninitialised memory access. Thanks to bluss for further reducing the testcase.
The text was updated successfully, but these errors were encountered: