]>
git.proxmox.com Git - rustc.git/blob - src/tools/clippy/tests/ui/redundant_closure_call_early.rs
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 #[allow(clippy::try_err)]
19 (|| -> Result
<i32, i32> { Err(2)? }
)();