pub fn main() {
|_: ARef| ();
}
type ARef<'a> = &'a <() as ArrayLength>::ArrayType;
trait ArrayLength {
type ArrayType;
}
impl ArrayLength for () {
type ArrayType = u8;
}
(Playground (+ comments))
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.
(Playground (+ comments))
In prior versions, this error used to happen only very rarely, but now it happens every time.