ICE: compiler/rustc_typeck/src/hir_wf_check.rs:133:29: Unexpected TraitItem Const #87536
Labels
C-bug
Category: This is a bug.
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
The ICE triggers for traits with associated consts whose types are some generic struct, but not always.
Code
Checking each trait is a bit of a chore, going through and commenting/uncommenting whichever trait is to be tested. If there's a better way to format this I'm all ears!
Note how each module has the same 3 traits as each other, the only difference from module to module is the bounds on the referenced type (
GenericStruct
) and the trait being bound. Interestingly it gets stranger as the blank trait changes the ICE triggering depending on if the trait has the generic impl block (impl<T> Blank for T {}
) or not.Meta
rustc --version --verbose
:Error output
Backtrace
Full Backtrace
I came across these ICE working on a project depending on the one that triggered this ICE, I wonder if the 2 issues are possibly related.
The text was updated successfully, but these errors were encountered: