]>
git.proxmox.com Git - rustc.git/blob - src/tools/clippy/tests/ui/let_return.rs
5 #![warn(let_and_return)]
8 let _y
= 0; // no warning
13 fn test_inner() -> i32 {
22 fn test_nowarn_1() -> i32 {
28 fn test_nowarn_2() -> i32 {
33 fn test_nowarn_3() -> (i32, i32) {
34 // this should technically warn, but we do not compare complex patterns
39 fn test_nowarn_4() -> i32 {
40 // this should technically warn, but not b/c of let_and_return, but b/c of useless type