ICE with anonymous_lifetime_in_impl_trait feature: "called Option::unwrap()
on a None
value"
#124340
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
C-bug
Category: This is a bug.
F-anonymous_lifetime_in_impl_trait
`#![feature(anonymous_lifetime_in_impl_trait)]`
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
S-bug-has-test
Status: This bug is tracked inside the repo by a `known-bug` test.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
The following code causes an internal compiler error:
playground link
Thanks to the_shrimp on the rust community discord for finding this bug.
Note that the
anonymous_lifetime_in_impl_trait
feature appears to be stabilized soon in #107378Meta
Bug was reproduced on the rust playground with version 1.79.0-nightly (2024-04-23 244da22).
Backtrace
The text was updated successfully, but these errors were encountered: