Files
rust/tests/ui/missing/missing-return.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

5 lines
226 B
Rust
Raw Permalink Normal View History

fn f() -> isize { } //~ ERROR mismatched types
//~| NOTE implicitly returns `()` as its body has no tail or `return` expression
//~| NOTE expected `isize`, found `()`
2011-07-27 14:19:39 +02:00
fn main() { f(); }