2 Checks for missing return statements at the end of a block.
5 Actually omitting the return keyword is idiomatic Rust code. Programmers
6 coming from other languages might prefer the expressiveness of `return`. It's possible to miss
7 the last returning statement because the only difference is a missing `;`. Especially in bigger
8 code with multiple return paths having a `return` keyword makes it easier to find the
9 corresponding statements.
13 fn foo(x: usize) -> usize {
19 fn foo(x: usize) -> usize {