rust/tests/ui/liveness/liveness-forgot-ret.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

7 lines
169 B
Rust
Raw Normal View History

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); }