Unexpected unsatisfied trait bound #115697
Labels
A-associated-items
Area: Associated items (types, constants & functions)
A-trait-system
Area: Trait system
C-bug
Category: This is a bug.
fixed-by-next-solver
Fixed by the next-generation trait solver, `-Znext-solver`.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
I tried this code:
https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&gist=761c1cce2cdf196f23ef8eab2a59bf6d
There seems to be an issue when resolving a blanket impl through the GAT when an associated type of the T is used - the above code is as far as I could minimize it while keeping the error message the same.
Interesting to note is this line in the error:
Which is true(!) but the error states that:
Which leads me to believe this is similar to #41756 or #24066? But I'm not sure honestly.
EDIT: I refactored the original (non-minimized) code to not use GATS and encountered this: #89910; perhaps the original issue is related?
The text was updated successfully, but these errors were encountered: