4 #![deny(needless_return)]
6 fn test_end_of_fn() -> bool {
14 fn test_no_semicolon() -> bool {
18 fn test_if_block() -> bool {
26 fn test_match(x: bool) -> bool {
39 let _ = || return true;
43 let _ = test_end_of_fn();
44 let _ = test_no_semicolon();
45 let _ = test_if_block();
46 let _ = test_match(true);