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