]> git.lizzy.rs Git - rust.git/blob - src/tools/clippy/tests/ui/same_functions_in_if_condition.stderr
Rollup merge of #96733 - SparrowLii:place_to_string, r=davidtwco
[rust.git] / src / tools / clippy / tests / ui / same_functions_in_if_condition.stderr
1 error: this `if` has the same function call as a previous `if`
2   --> $DIR/same_functions_in_if_condition.rs:31:15
3    |
4 LL |     } else if function() {
5    |               ^^^^^^^^^^
6    |
7    = note: `-D clippy::same-functions-in-if-condition` implied by `-D warnings`
8 note: same as this
9   --> $DIR/same_functions_in_if_condition.rs:30:8
10    |
11 LL |     if function() {
12    |        ^^^^^^^^^^
13
14 error: this `if` has the same function call as a previous `if`
15   --> $DIR/same_functions_in_if_condition.rs:36:15
16    |
17 LL |     } else if fn_arg(a) {
18    |               ^^^^^^^^^
19    |
20 note: same as this
21   --> $DIR/same_functions_in_if_condition.rs:35:8
22    |
23 LL |     if fn_arg(a) {
24    |        ^^^^^^^^^
25
26 error: this `if` has the same function call as a previous `if`
27   --> $DIR/same_functions_in_if_condition.rs:41:15
28    |
29 LL |     } else if obj.method() {
30    |               ^^^^^^^^^^^^
31    |
32 note: same as this
33   --> $DIR/same_functions_in_if_condition.rs:40:8
34    |
35 LL |     if obj.method() {
36    |        ^^^^^^^^^^^^
37
38 error: this `if` has the same function call as a previous `if`
39   --> $DIR/same_functions_in_if_condition.rs:46:15
40    |
41 LL |     } else if obj.method_arg(a) {
42    |               ^^^^^^^^^^^^^^^^^
43    |
44 note: same as this
45   --> $DIR/same_functions_in_if_condition.rs:45:8
46    |
47 LL |     if obj.method_arg(a) {
48    |        ^^^^^^^^^^^^^^^^^
49
50 error: this `if` has the same function call as a previous `if`
51   --> $DIR/same_functions_in_if_condition.rs:53:15
52    |
53 LL |     } else if v.pop() == None {
54    |               ^^^^^^^^^^^^^^^
55    |
56 note: same as this
57   --> $DIR/same_functions_in_if_condition.rs:51:8
58    |
59 LL |     if v.pop() == None {
60    |        ^^^^^^^^^^^^^^^
61
62 error: this `if` has the same function call as a previous `if`
63   --> $DIR/same_functions_in_if_condition.rs:58:15
64    |
65 LL |     } else if v.len() == 42 {
66    |               ^^^^^^^^^^^^^
67    |
68 note: same as this
69   --> $DIR/same_functions_in_if_condition.rs:56:8
70    |
71 LL |     if v.len() == 42 {
72    |        ^^^^^^^^^^^^^
73
74 error: aborting due to 6 previous errors
75