implied bounds from impl header are not used when comparing trait and impl methods #105495
Labels
A-associated-items
Area: Associated items (types, constants & functions)
A-implied-bounds
Area: Implied bounds / inferred outlives-bounds
C-bug
Category: This is a bug.
T-types
Relevant to the types team, which will review and decide on the PR/issue.
This doesn't compile:
Although it should for the same reason it compiles with the following change:
There should be no difference in behavior between implied and explicit bounds on impl header.
This is because we're not adding sufficient implied bounds in
compare_predicate_entailment()
here:rust/compiler/rustc_hir_analysis/src/check/compare_method.rs
Line 252 in 14ca83a
@rustbot label T-types A-implied-bounds A-associated-items C-bug
The text was updated successfully, but these errors were encountered: