rustc internal compiler error: 'assertion failed: resolution.depth == 0 || resolution.base_def != Def::Err' #39559
Labels
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
I was experimenting with type-checked vector space (i.e. NOT
Vec
) operations in Rust, and I triggered a compiler panic using a nightly version ofrustc
. I reproduced it with the following minimal example.Using
gave me an error I basically expected
but when I switched to
rustc-nightly
I triggered the following compiler panic.
Ostensibly the error is expected but the panic is not. It seems to be something about the vector struct definition that's causing
rustc
to panic, because when I remove the vector code, the compiler panic goes away.Using the same
rustc-nightly
as before, the following happens.as expected. Interestingly,
rustc
throws a different compiler error before it panics as well. I am not sure if that's relevant or not though.The text was updated successfully, but these errors were encountered: