]> git.lizzy.rs Git - rust.git/blob - tests/ui/redundant_closure_call_fixable.stderr
iterate List by value
[rust.git] / 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