mirror of
https://github.com/rust-lang/rust.git
synced 2025-10-03 02:40:40 +00:00
6 lines
137 B
Rust
6 lines
137 B
Rust
fn f() { return; }
|
|
|
|
fn g() -> isize { return; } //~ ERROR `return;` in a function whose return type is not `()`
|
|
|
|
fn main() { f(); g(); }
|