4 #![deny(needless_return)]
6 fn test_end_of_fn() -> bool {
17 fn test_no_semicolon() -> bool {
24 fn test_if_block() -> bool {
38 fn test_match(x: bool) -> bool {
61 let _ = || return true;
68 let _ = test_end_of_fn();
69 let _ = test_no_semicolon();
70 let _ = test_if_block();
71 let _ = test_match(true);