rustc panic after failing to resolve trait fn return lifetime #48963
Labels
A-traits
Area: Trait system
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.
I have no idea if what I'm trying to do is even reasonable, but the compiler crash should probably be addressed.
I tried this code:
I expected to see this happen:
The same failure, but without a panic. Note that rustc does not panic when only one of the two methods is provided, although it still cannot resolve the lifetime.
What I hoped would happen:
The
const
value would be interpreted by the compiler and theimpl
would need to return a slice of sizeBroken::LEN
Instead, this happened:
rustc panicked.
Meta
rustc --version --verbose
:Backtrace:
The text was updated successfully, but these errors were encountered: