Unable to put trait bound on associated type in generic method in trait with its own associated type #116377
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'm trying to get the following to compile.
This is a minimal example that illustrates the issue. The compiler gives me the following error, asking me to further restrict
E
with the exact same bound.This snippet compiles just fine if I remove the
E::Error: Sized
bound.Meta
I've tried this on stable (1.72.1) and nightly (1.75.0-nightly)
rustc --version --verbose
:The text was updated successfully, but these errors were encountered: