rust/tests/ui/wrong-ret-type.rs
2023-01-11 09:32:08 +00:00

4 lines
102 B
Rust

// error-pattern: mismatched types
fn mk_int() -> usize { let i: isize = 3; return i; }
fn main() { }