rust/tests/ui/tail-typeck.rs
2023-01-11 09:32:08 +00:00

8 lines
127 B
Rust

// error-pattern: mismatched types
fn f() -> isize { return g(); }
fn g() -> usize { return 0; }
fn main() { let y = f(); }