]> git.lizzy.rs Git - rust.git/blob - tests/ui/redundant_closure_call_early.stderr
redundant_closure_call - extract lint from misc_early.rs, adapt to LatePass
[rust.git] / tests / ui / redundant_closure_call_early.stderr
1 error: Try not to call a closure in the expression where it is declared.
2   --> $DIR/redundant_closure_call_early.rs:9:17
3    |
4 LL |     let mut k = (|m| m + 1)(i);
5    |                 ^^^^^^^^^^^^^^
6    |
7    = note: `-D clippy::redundant-closure-call` implied by `-D warnings`
8
9 error: Try not to call a closure in the expression where it is declared.
10   --> $DIR/redundant_closure_call_early.rs:12:9
11    |
12 LL |     k = (|a, b| a * b)(1, 5);
13    |         ^^^^^^^^^^^^^^^^^^^^
14
15 error: aborting due to 2 previous errors
16