]> git.lizzy.rs Git - rust.git/blob - src/tools/clippy/tests/ui/redundant_closure_call_fixable.stderr
Merge commit 'da5a6fb1b65ec6581a67e942a3850f6bc15a552c' into clippyup
[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