8 lines
130 B
Rust
8 lines
130 B
Rust
// error-pattern: `return;` in function returning non-nil
|
|
|
|
fn f() { return; }
|
|
|
|
fn g() -> int { return; }
|
|
|
|
fn main() { f(); g(); }
|