4 #![allow(unused_variables, unused_assignments, similar_names, blacklisted_name)]
5 #![warn(useless_let_if_seq)]
7 fn f() -> bool { true }
8 fn g(x: i32) -> i32 { x + 1 }
10 fn issue985() -> i32 {
19 fn issue985_alt() -> i32 {
30 fn issue975() -> String {
31 let mut udn = "dummy".to_string();
32 if udn.starts_with("uuid:") {
33 udn = String::from(&udn[5..]);
38 fn early_return() -> u8 {
39 // FIXME: we could extend the lint to include such cases:
78 // `toto` is used several times
90 // found in libcore, the inner if is not a statement but the block's expr
99 // baz needs to be mut