2 ms·
Perhaps more succinctly: fn main() { const _:() = const { if false { panic!() } }; } It's fine that we want a constant, it's fine that this con
by tialaramex 1y ago
Perhaps more succinctly:
fn main() {
const _:() = const { if false { panic!() } };
}
It's fine that we want a constant, it's fine that this constant would, when being computed at compile time, panic if false was true, because it is not.