2 #![warn(else_if_without_else)]
4 fn bla1() -> bool { unimplemented!() }
5 fn bla2() -> bool { unimplemented!() }
6 fn bla3() -> bool { unimplemented!() }
30 println!("else if 1");
32 println!("else if 2");
39 } else if bla2() { //~ ERROR else if without else
46 println!("else if 1");
47 } else if bla3() { //~ ERROR else if without else
48 println!("else if 2");