Compiler hangs; doesn't detect "overflow evaluating the requirement" in case of dyn closure #113359
Labels
A-type-system
Area: Type system
C-bug
Category: This is a bug.
I-hang
Issue: The compiler never terminates, due to infinite loops, deadlock, livelock, etc.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
T-types
Relevant to the types team, which will review and decide on the PR/issue.
Problem
I tried this code:
(Playground)
I expect to get some sort of error at least, but instead the compiler hangs.
If I use
&'static fn(A) -> B
instead of&'static dyn FnMut(A) -> B
, an error will be reported instead:Meta
rustc --version --verbose
:Possibly related
The text was updated successfully, but these errors were encountered: