blob: 91881a3b94d678575c0f8450263e156d79d2c3a0 [file]
// Check that repeating a diverging constant 0 times doesn't lead to unsoundness.
//
// Issue: <https://github.com/rust-lang/rust/issues/165323>
fn ex_nihilo() -> u32 {
//~^ error: mismatched types
[const { panic!() } as !; 0];
}
fn main() {
dbg!(ex_nihilo());
}