mirror of
https://github.com/allankoechke/rust.git
synced 2026-12-01 01:26:32 +00:00
7 lines
119 B
Rust
7 lines
119 B
Rust
fn test() -> (i32,) {
|
|
return;
|
|
//~^ ERROR `return;` in a function whose return type is not `()`
|
|
}
|
|
|
|
fn main() {}
|