1 #![warn(clippy::needless_return)]
3 fn test_end_of_fn() -> bool {
11 fn test_no_semicolon() -> bool {
15 fn test_if_block() -> bool {
23 fn test_match(x: bool) -> bool {
36 let _ = || return true;
40 let _ = test_end_of_fn();
41 let _ = test_no_semicolon();
42 let _ = test_if_block();
43 let _ = test_match(true);