summaryrefslogtreecommitdiffstats
path: root/tests/ui/expr/if/if-ret.rs
blob: 896072ce728eb18e98218f88241ef3a9c38f4270 (plain)
1
2
3
4
5
6
7
8
// run-pass

#![allow(unused_parens)]
// pretty-expanded FIXME #23616

fn foo() { if (return) { } } //~ WARNING unreachable block in `if`

pub fn main() { foo(); }