3 #![allow(unused, clippy::needless_bool)]
4 #![allow(clippy::if_same_then_else, clippy::single_match)]
5 #![warn(clippy::needless_return)]
7 macro_rules! the_answer {
13 fn test_end_of_fn() -> bool {
21 fn test_no_semicolon() -> bool {
25 fn test_if_block() -> bool {
33 fn test_match(x: bool) -> bool {
46 let _ = || return true;
49 fn test_macro_call() -> i32 {
57 fn test_void_if_fun(b: bool) {
65 fn test_void_match(x: u32) {
72 fn read_line() -> String {
74 let stdin = ::std::io::stdin();
75 return stdin.lock().lines().next().unwrap().unwrap();
78 fn borrows_but_not_last(value: bool) -> String {
81 let stdin = ::std::io::stdin();
82 let _a = stdin.lock().lines().next().unwrap().unwrap();
83 return String::from("test");
90 let _ = test_end_of_fn();
91 let _ = test_no_semicolon();
92 let _ = test_if_block();
93 let _ = test_match(true);