Blanket impl of super trait with method returning associated type: "incompatible type for trait" #141807
Labels
C-bug
Category: This is a bug.
needs-triage
This issue may need triage. Remove it if it has been sufficiently triaged.
I tried this code:
I expected to see this happen: The code compiles
Instead, this happened: The code fails to compile.
Maybe this is working as intended, but intuitively I wouldn't have expected the
Helper: Super
to make a difference for theimpl Super for T
.The type error is a lot more confusing if the associated type is implicit, (i.e.
-> impl Future
orasync fn
), because that results in "expected signaturefn(&_) -> X
, found signaturefn(&_) -> X
"Meta
rustc --version --verbose
:The text was updated successfully, but these errors were encountered: