rust/tests/ui/redundant_closure_call_fixable.stderr

11 lines
336 B
Plaintext
Raw Normal View History

error: try not to call a closure in the expression where it is declared
--> $DIR/redundant_closure_call_fixable.rs:7:13
|
LL | let a = (|| 42)();
2020-07-19 22:36:31 +00:00
| ^^^^^^^^^ help: try doing something like: `42`
|
= note: `-D clippy::redundant-closure-call` implied by `-D warnings`
error: aborting due to previous error