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