]> git.lizzy.rs Git - rust.git/blob - tests/ui/redundant_closure_call.stderr
Move all our tests back to ui tests
[rust.git] / tests / ui / redundant_closure_call.stderr
1 error: Closure called just once immediately after it was declared
2   --> $DIR/redundant_closure_call.rs:15:2
3    |
4 15 | \ti = closure();
5    | \t^^^^^^^^^^^^^
6    |
7    = note: `-D redundant-closure-call` implied by `-D warnings`
8
9 error: Closure called just once immediately after it was declared
10   --> $DIR/redundant_closure_call.rs:18:2
11    |
12 18 | \ti = closure(3);
13    | \t^^^^^^^^^^^^^^
14
15 error: Try not to call a closure in the expression where it is declared.
16  --> $DIR/redundant_closure_call.rs:7:10
17   |
18 7 | \tlet a = (|| 42)();
19   | \t        ^^^^^^^^^ help: Try doing something like: : `42`
20
21 error: Try not to call a closure in the expression where it is declared.
22   --> $DIR/redundant_closure_call.rs:10:14
23    |
24 10 | \tlet mut k = (|m| m+1)(i);
25    | \t            ^^^^^^^^^^^^
26
27 error: Try not to call a closure in the expression where it is declared.
28   --> $DIR/redundant_closure_call.rs:12:6
29    |
30 12 | \tk = (|a,b| a*b)(1,5);
31    | \t    ^^^^^^^^^^^^^^^^
32
33 error: aborting due to 5 previous errors
34