summaryrefslogtreecommitdiff
path: root/tests/ui/tail-typeck.rs
blob: 37a7694c8fa71c9a3824e521a8ab2cfb184f8f9f (plain)
1
2
3
4
5
6
7
// error-pattern: mismatched types

fn f() -> isize { return g(); }

fn g() -> usize { return 0; }

fn main() { let y = f(); }