Unreachable code is entered when trying to const-eval a block that doesn't have a terminating expression. ``` rust const fn f(_: ()) -> usize { 1 } fn main() { [0; f({})]; } ``` The relevant line is https://github.com/rust-lang/rust/blob/8c77ffb484ada2c8f10bf2da5bbe6a9f82f935bb/src/librustc/middle/const_eval.rs#L1124
Unreachable code is entered when trying to const-eval a block that doesn't have a terminating expression.
The relevant line is
rust/src/librustc/middle/const_eval.rs
Line 1124 in 8c77ffb