]> git.lizzy.rs Git - rust.git/blob - tests/ui/reachable/expr_oror.rs
Rollup merge of #106664 - chenyukang:yukang/fix-106597-remove-lseek, r=cuviper
[rust.git] / tests / ui / reachable / expr_oror.rs
1 // build-pass (FIXME(62277): could be check-pass?)
2
3 #![allow(unused_variables)]
4 #![allow(dead_code)]
5 #![deny(unreachable_code)]
6
7 fn foo() {
8     let x = false || (return);
9     println!("I am not dead.");
10 }
11
12 fn main() { }