NLL type-checking ICEs on closure recursing on impl Trait-returning enclosing function. #54593
Labels
A-impl-trait
Area: `impl Trait`. Universally / existentially quantified anonymous types with static dispatch.
A-NLL
Area: Non-lexical lifetimes (NLL)
C-bug
Category: This is a bug.
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
Milestone
This compiles as expected:
This, however, does not, since today (suspecting it's #53542):
Each inner closure, because it calls its parent function, causes this ICE: "equate_inputs_and_outputs:
impl std::marker::Copy==impl std::marker::Copy
failed withNoSolution
".(you only need one of
foo
orbar
, but I left both in for contrast with the first example)I suspect each
impl Copy
is instantiated in two different ways, causing inconsistencies.Originally found through a daily Travis CI build job.
The text was updated successfully, but these errors were encountered: