1
Fork 0
rust/tests/ui/ret-non-nil.rs

8 lines
147 B
Rust
Raw Normal View History

//@ error-pattern: `return;` in a function whose return type is not `()`
2012-08-01 17:30:05 -07:00
fn f() { return; }
fn g() -> isize { return; }
fn main() { f(); g(); }