1 #![warn(clippy::needless_return)]
3 macro_rules! the_answer {
9 fn test_end_of_fn() -> bool {
17 fn test_no_semicolon() -> bool {
21 fn test_if_block() -> bool {
29 fn test_match(x: bool) -> bool {
42 let _ = || return true;
45 fn test_macro_call() -> i32 {
53 fn test_void_if_fun(b: bool) {
61 fn test_void_match(x: u32) {
69 let _ = test_end_of_fn();
70 let _ = test_no_semicolon();
71 let _ = test_if_block();
72 let _ = test_match(true);