]> git.lizzy.rs Git - rust.git/blob - src/tools/clippy/tests/ui/redundant_closure_call_fixable.stderr
Rollup merge of #71633 - a1phyr:infallible_error, r=dtolnay
[rust.git] / src / tools / clippy / tests / ui / redundant_closure_call_fixable.stderr
1 error: Try not to call a closure in the expression where it is declared.
2   --> $DIR/redundant_closure_call_fixable.rs:7:13
3    |
4 LL |     let a = (|| 42)();
5    |             ^^^^^^^^^ help: Try doing something like: : `42`
6    |
7    = note: `-D clippy::redundant-closure-call` implied by `-D warnings`
8
9 error: aborting due to previous error
10