1 #![warn(clippy::implicit_return)]
3 fn test_end_of_fn() -> bool {
11 #[allow(clippy::needless_bool)]
12 fn test_if_block() -> bool {
20 #[allow(clippy::match_bool)]
22 fn test_match(x: bool) -> bool {
29 #[allow(clippy::match_bool, clippy::needless_return)]
30 fn test_match_with_unreachable(x: bool) -> bool {
33 false => unreachable!(),
37 #[allow(clippy::never_loop)]
38 fn test_loop() -> bool {
44 #[allow(clippy::never_loop)]
45 fn test_loop_with_block() -> bool {
53 #[allow(clippy::never_loop)]
54 fn test_loop_with_nests() -> bool {
64 #[allow(clippy::redundant_pattern_matching)]
65 fn test_loop_with_if_let() -> bool {
67 if let Some(x) = Some(true) {
80 let _ = test_end_of_fn();
81 let _ = test_if_block();
82 let _ = test_match(true);
83 let _ = test_match_with_unreachable(true);
85 let _ = test_loop_with_block();
86 let _ = test_loop_with_nests();
87 let _ = test_loop_with_if_let();