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