rust/tests/ui/reachable/diverging-expressions-unreachable-code.rs
2025-07-10 18:50:35 +05:00

20 lines
230 B
Rust

//@ run-pass
#![allow(unused_must_use)]
#![allow(unreachable_code)]
fn _id(x: bool) -> bool {
x
}
fn _call_id() {
let _c = panic!();
_id(_c);
}
fn _call_id_3() {
_id(return) && _id(return);
}
pub fn main() {}