Closed
Description
pub fn main() {
|_: ARef| ();
}
type ARef<'a> = &'a <() as ArrayLength>::ArrayType;
trait ArrayLength {
type ArrayType;
}
impl ArrayLength for () {
type ArrayType = u8;
}
error: internal compiler error: broken MIR in DefId(0:13 ~ playground[a34e]::main[0]::{{closure}}[0]) (bb0[0]): equate_normalized_input_or_output: `&[closure@src/main.rs:5:5: 5:17]==&[closure@src/main.rs:5:5: 5:17]` failed with `NoSolution`
--> src/main.rs:5:17
|
5 | |_: ARef| ();
| ^
thread 'rustc' panicked at 'no errors encountered even though `delay_span_bug` issued', src/librustc_errors/lib.rs:391:17
In prior versions, this error used to happen only very rarely, but now it happens every time.
Metadata
Metadata
Assignees
Labels
Area: Mid-level IR (MIR) - https://blog.rust-lang.org/2016/04/19/MIR.htmlArea: Non-lexical lifetimes (NLL)Area: Lazy normalization (tracking issue: #60471)Category: This is a bug.Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️High priorityRelevant to the compiler team, which will review and decide on the PR/issue.ICE tracked in rust-lang/glacier.Performance or correctness regression from one stable version to another.