impl Trait
in return position with lifetimes and const_evaluatable_checked
gives ICE
#86068
Labels
A-const-generics
Area: const generics (parameters and arguments)
A-incr-comp
Area: Incremental compilation
C-bug
Category: This is a bug.
F-const_generics
`#![feature(const_generics)]`
F-generic_const_exprs
`#![feature(generic_const_exprs)]`
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
requires-nightly
This issue requires a nightly compiler in some way.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
I did some experiments and found that reproducing ICE requires two things:
-C incremental
. I believe that's why it compiles well at playground.const_generics
andconst_evaluatable_checked
must be present. Otherwise, it just compiles well.I've tried to reduce it by specifying concrete type or removing lifetimes or const generics, but had no luck. So that's why title is so long.
Code
Compile with cargo or use
rustc ./ice.rs --crate-type lib -C incremental=something
Meta
rustc --version --verbose
:Error output
Backtrace
@rustbot label +F-const_generics +F-const_evaluatable_checked +requires-nightly +A-const-generics +A-incr-comp
The text was updated successfully, but these errors were encountered: