Compiler refuses code, demanding bound that's provided #54973
Labels
A-associated-items
Area: Associated items (types, constants & functions)
A-const-eval
Area: Constant evaluation (MIR interpretation)
C-bug
Category: This is a bug.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
This is a more complex, but different, case as #54972.
When I try to compile:
the compiler refuses it with the error:
Similarly to #54972, if I add
MODE: ?Sized
bounds to lines 4 and 15, theSized
(first) error goes away, but theRunMode
(second) one does not.The text was updated successfully, but these errors were encountered: