]> git.lizzy.rs Git - rust.git/blob - src/test/ui/unreachable-code-1.rs
Rollup merge of #101388 - compiler-errors:issue-101376, r=fee1-dead
[rust.git] / src / test / ui / unreachable-code-1.rs
1 // run-pass
2
3 #![allow(unused_must_use)]
4 #![allow(unreachable_code)]
5
6 #![allow(unused_variables)]
7 #![allow(dead_code)]
8
9 fn id(x: bool) -> bool { x }
10
11 fn call_id() {
12     let c = panic!();
13     id(c);
14 }
15
16 fn call_id_3() { id(return) && id(return); }
17
18 pub fn main() {
19 }