1 #![warn(clippy::redundant_else)]
2 #![allow(clippy::needless_return)]
8 println!("Love your neighbor;");
11 println!("yet don't pull down your hedge.");
15 println!("He that lies down with Dogs,");
18 println!("shall rise up with fleas.");
27 println!("You may delay, but time will not.");
36 println!("A fat kitchen makes a lean will.");
38 // let binding outside of block
46 // else if with let binding outside of block
57 let _ = if let Some(1) = foo() {
76 println!("Who is wise? He that learns from every one.");
78 // else if without else
92 // match with non-breaking branch
99 println!("Three may keep a secret, if two of them are dead.");
120 // if return else if else
128 // if else if return else
136 // else if with let binding
144 // inside function call
153 unimplemented!("I'm not Santa Claus")