summaryrefslogtreecommitdiffstats
path: root/src/tools/clippy/tests/ui/redundant_closure_call_fixable.stderr
blob: afd704ef12a934f913454334a42bd68c5a95a954 (plain)
1
2
3
4
5
6
7
8
9
10
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)();
   |             ^^^^^^^^^ help: try doing something like: `42`
   |
   = note: `-D clippy::redundant-closure-call` implied by `-D warnings`

error: aborting due to previous error