rust/tests/ui/return/suggest-a-value.rs

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

7 lines
119 B
Rust
Raw Normal View History

2024-04-14 08:35:52 -05:00
fn test() -> (i32,) {
return;
//~^ ERROR `return;` in a function whose return type is not `()`
}
fn main() {}