rust/tests/ui/expr/if/if-ret.rs

9 lines
166 B
Rust

//@ run-pass
#![allow(unused_parens)]
//@ pretty-expanded FIXME #23616
fn foo() { if (return) { } } //~ WARNING unreachable block in `if`
pub fn main() { foo(); }