rust/clippy_tests/examples/redundant_closure_call.stderr
Georg Brandl 6b6253016f Update stderr files for change in error reporting
rustc now (https://github.com/rust-lang/rust/issues/33525) does not
report an error count anymore, because it was not correct in many cases.
2017-05-26 16:54:07 +02:00

46 lines
1.3 KiB
Plaintext

error: Closure called just once immediately after it was declared
--> redundant_closure_call.rs:15:2
|
15 | i = closure();
| ^^^^^^^^^^^^^
|
= note: `-D redundant-closure-call` implied by `-D warnings`
error: Closure called just once immediately after it was declared
--> redundant_closure_call.rs:18:2
|
18 | i = closure(3);
| ^^^^^^^^^^^^^^
|
= note: `-D redundant-closure-call` implied by `-D warnings`
error: Try not to call a closure in the expression where it is declared.
--> redundant_closure_call.rs:7:10
|
7 | let a = (|| 42)();
| ^^^^^^^^^ help: Try doing something like: `42`
|
= note: `-D redundant-closure-call` implied by `-D warnings`
error: Try not to call a closure in the expression where it is declared.
--> redundant_closure_call.rs:10:14
|
10 | let mut k = (|m| m+1)(i);
| ^^^^^^^^^^^^
|
= note: `-D redundant-closure-call` implied by `-D warnings`
error: Try not to call a closure in the expression where it is declared.
--> redundant_closure_call.rs:12:6
|
12 | k = (|a,b| a*b)(1,5);
| ^^^^^^^^^^^^^^^^
|
= note: `-D redundant-closure-call` implied by `-D warnings`
error: aborting due to previous error(s)
error: Could not compile `clippy_tests`.
To learn more, run the command again with --verbose.