2 #![warn(clippy::let_and_return)]
5 let _y = 0; // no warning
10 fn test_inner() -> i32 {
19 fn test_nowarn_1() -> i32 {
25 fn test_nowarn_2() -> i32 {
30 fn test_nowarn_3() -> (i32, i32) {
31 // this should technically warn, but we do not compare complex patterns
36 fn test_nowarn_4() -> i32 {
37 // this should technically warn, but not b/c of clippy::let_and_return, but b/c of useless type