]> git.lizzy.rs Git - rust.git/blob - src/test/ui/tail-typeck.rs
Merge commit '05677b6bd6c938ed760835d9b1f6514992654ae3' into sync_cg_clif-2021-08-06
[rust.git] / src / test / ui / tail-typeck.rs
1 // error-pattern: mismatched types
2
3 fn f() -> isize { return g(); }
4
5 fn g() -> usize { return 0; }
6
7 fn main() { let y = f(); }