ICE when trying to reference an associated trait constant #63496
Labels
A-associated-items
Area: Associated items (types, constants & functions)
A-codegen
Area: Code generation
A-lazy-normalization
Area: Lazy normalization (tracking issue: #60471)
C-bug
Category: This is a bug.
E-needs-test
Call for participation: An issue has been fixed and does not reproduce, but no test has been added.
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
P-medium
Medium priority
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Error message
error: internal compiler error: src/librustc/traits/codegen/mod.rs:51: Encountered ambiguity selecting
Binder(<[type error] as ToBytes>)during codegen, presuming due to overflow
This only happens if there are two erroneous functions, if I take out
b
it works fine.It seems like I was trying to do this wrong in the first place since the first function gives an error
error[E0283]: type annotations required: cannot resolve '_: ToBytes'
. Not sure what the right way to do this is.Traceback
Version
The text was updated successfully, but these errors were encountered: