Format macro causes panic if it is inside closure which result is passed into a function that accepts less args. #94599
Labels
C-bug
Category: This is a bug.
glacier
ICE tracked in rust-lang/glacier.
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
If using format inside a closure (e.g. in iter functions) and the returning String is passed into a function that takes less args, rustc panics.
Code
Minimized code snippet: #94599 (comment)
Meta
version: 1.60.0-beta.2 and 1.61.0-nightly
Error output
query:
The text was updated successfully, but these errors were encountered: