1 // non rustfixable, see redundant_closure_call_fixable.rs
3 #![warn(clippy::redundant_closure_call)]
7 let mut k = (|m| m + 1)(i);
9 k = (|a, b| a * b)(1, 5);
14 let closure = |i| i + 1;
19 #[allow(clippy::needless_return)]
21 (|| -> Option<i32> { None? })();
22 (|| -> Result<i32, i32> { Err(2)? })();