1 error: comparison operators cannot be chained
2 --> $DIR/chained-comparison-suggestion.rs:4:7
7 help: split the comparison into two
12 error: comparison operators cannot be chained
13 --> $DIR/chained-comparison-suggestion.rs:9:7
18 help: split the comparison into two
23 error: comparison operators cannot be chained
24 --> $DIR/chained-comparison-suggestion.rs:13:7
29 help: split the comparison into two
34 error: comparison operators cannot be chained
35 --> $DIR/chained-comparison-suggestion.rs:18:7
40 help: split the comparison into two
42 LL | 1 <= 2 && 2 <= 3;
45 error: comparison operators cannot be chained
46 --> $DIR/chained-comparison-suggestion.rs:23:7
51 help: split the comparison into two
56 error: comparison operators cannot be chained
57 --> $DIR/chained-comparison-suggestion.rs:28:7
62 help: split the comparison into two
67 error: comparison operators cannot be chained
68 --> $DIR/chained-comparison-suggestion.rs:32:7
73 help: split the comparison into two
78 error: comparison operators cannot be chained
79 --> $DIR/chained-comparison-suggestion.rs:36:7
84 help: split the comparison into two
86 LL | 1 >= 2 && 2 >= 3;
89 error: comparison operators cannot be chained
90 --> $DIR/chained-comparison-suggestion.rs:41:7
95 help: parenthesize the comparison
100 error: comparison operators cannot be chained
101 --> $DIR/chained-comparison-suggestion.rs:45:7
106 help: parenthesize the comparison
108 LL | (1 > 2) == false;
111 error: comparison operators cannot be chained
112 --> $DIR/chained-comparison-suggestion.rs:49:7
117 help: split the comparison into two
119 LL | 1 == 2 && 2 == 3;
122 error[E0308]: mismatched types
123 --> $DIR/chained-comparison-suggestion.rs:4:14
126 | ^ expected `bool`, found integer
128 error[E0308]: mismatched types
129 --> $DIR/chained-comparison-suggestion.rs:13:14
132 | ^ expected `bool`, found integer
134 error[E0308]: mismatched types
135 --> $DIR/chained-comparison-suggestion.rs:18:15
138 | ^ expected `bool`, found integer
140 error[E0308]: mismatched types
141 --> $DIR/chained-comparison-suggestion.rs:23:14
144 | ^ expected `bool`, found integer
146 error[E0308]: mismatched types
147 --> $DIR/chained-comparison-suggestion.rs:36:15
150 | ^ expected `bool`, found integer
152 error[E0308]: mismatched types
153 --> $DIR/chained-comparison-suggestion.rs:49:15
156 | ^ expected `bool`, found integer
158 error: aborting due to 17 previous errors
160 For more information about this error, try `rustc --explain E0308`.