Unboxed closure ICE due to conflicting use of self param space #18685
Labels
A-closures
Area: Closures (`|…| { … }`)
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
Found while debugging #18661
Output:
This is due to the self param space being used both for the unboxed closure itself within the implicit
FnOnce
impl, and for the self type of the enclosing trait.I don't think the first use is ever necessary since the
self
of the unboxed closure cannot actually be mentioned within it. The unboxed closure type may need to be plumbed through some other way, though.The text was updated successfully, but these errors were encountered: