ICE "no entry for node id" (new_named_lifetime_with_res in rustc_ast_lowering) #103210
Labels
C-bug
Category: This is a bug.
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.
Found by fuzzing with a modified fuzz-rustc
Code
The compiler panics while compiling this code (playground).
It then panics a second time while trying to explain why it panicked.
I believe this is a valid Rust program, based on the variants below that compile successfully.
Meta
rustc --version --verbose
:Error output
Full output with both backtraces
Variants that do not crash
It compiles successfully if I change
&i8
to_
in the paramter's pattern:It also compiles successfully if I change the reference to specify the
'static
lifetime throughout:The text was updated successfully, but these errors were encountered: