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