summaryrefslogtreecommitdiffstats
path: root/tests/ui/liveness/liveness-forgot-ret.rs
blob: b8c2bc7343892903c6972e099e3470845a6b304d (plain)
1
2
3
4
5
6
fn god_exists(a: isize) -> bool { return god_exists(a); }

fn f(a: isize) -> isize { if god_exists(a) { return 5; }; }
//~^ ERROR mismatched types

fn main() { f(12); }