rust/tests/ui/tail-typeck.rs
2024-02-16 20:02:50 +00:00

8 lines
128 B
Rust

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