mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-06 08:54:47 +01:00
Check exhaustiveness of function-ending match statements (#882)
Co-authored-by: Jon Meow <46229924+jonmeow@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
co-authored by
Jon Meow
parent
652bee6d99
commit
c2140c6cb9
@@ -17,4 +17,5 @@ fn main() -> i32 {
|
||||
case (_: i32, _: auto, x: i32, y: auto) =>
|
||||
return y - x - 1;
|
||||
}
|
||||
return 1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user