]> git.lizzy.rs Git - rust.git/blob - src/tools/clippy/tests/ui/redundant_closure_call_fixable.stderr
644161d9f5d885eb24da0c187bfcd5e63ffa1352
[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