Compiler crash during doc test with generic_const_exprs #94664
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.
Trying to use
generic_const_exprs
(#76560) to enforce bounds on a const generic is causing a compiler crash for doc tests if#![feature(generic_const_exprs)]
is not included in the doc test snippet. This does not occur in all cases - eg. theTryFrom
example below causes a crash, but theFrom
example does not. Seems to be related to theResult
type.Code
cargo new --lib const_generics_bug
lib.rs
:Meta
rustc --version --verbose
:Error output
Backtrace
The text was updated successfully, but these errors were encountered: