]> git.lizzy.rs Git - rust.git/blob - tests/ui/reachable/expr_andand.rs
Rollup merge of #106701 - ibraheemdev:sync-sender-spin, r=Amanieu
[rust.git] / tests / ui / reachable / expr_andand.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     // No error here.
9     let x = false && (return);
10     println!("I am not dead.");
11 }
12
13 fn main() { }