@@ -4,7 +4,7 @@ error[E0689]: can't call method `rev` on type `usize`
4
4
LL | for _i in 0..arr.len().rev() {
5
5
| ^^^ can't call method `rev` on type `usize`
6
6
|
7
- help: you must surround the range in parentheses to call the `rev` function
7
+ help: you must surround the range in parentheses to call its `rev` function
8
8
|
9
9
LL | for _i in (0..arr.len()).rev() {
10
10
| + +
@@ -15,7 +15,7 @@ error[E0689]: can't call method `rev` on type `{integer}`
15
15
LL | for i in 1..11.rev() {
16
16
| ^^^ can't call method `rev` on type `{integer}`
17
17
|
18
- help: you must surround the range in parentheses to call the `rev` function
18
+ help: you must surround the range in parentheses to call its `rev` function
19
19
|
20
20
LL | for i in (1..11).rev() {
21
21
| + +
@@ -26,7 +26,7 @@ error[E0689]: can't call method `rev` on type `usize`
26
26
LL | for i in 1..end.rev() {
27
27
| ^^^ can't call method `rev` on type `usize`
28
28
|
29
- help: you must surround the range in parentheses to call the `rev` function
29
+ help: you must surround the range in parentheses to call its `rev` function
30
30
|
31
31
LL | for i in (1..end).rev() {
32
32
| + +
@@ -37,7 +37,7 @@ error[E0689]: can't call method `rev` on type `usize`
37
37
LL | for i in 1..(end + 1).rev() {
38
38
| ^^^ can't call method `rev` on type `usize`
39
39
|
40
- help: you must surround the range in parentheses to call the `rev` function
40
+ help: you must surround the range in parentheses to call its `rev` function
41
41
|
42
42
LL | for i in (1..(end + 1)).rev() {
43
43
| + +
@@ -48,7 +48,7 @@ error[E0689]: can't call method `is_empty` on type `usize`
48
48
LL | if 1..(end + 1).is_empty() {
49
49
| ^^^^^^^^ can't call method `is_empty` on type `usize`
50
50
|
51
- help: you must surround the range in parentheses to call the `is_empty` function
51
+ help: you must surround the range in parentheses to call its `is_empty` function
52
52
|
53
53
LL | if (1..(end + 1)).is_empty() {
54
54
| + +
@@ -68,7 +68,7 @@ error[E0689]: can't call method `is_sorted` on type `usize`
68
68
LL | if 1..(end + 1).is_sorted() {
69
69
| ^^^^^^^^^ can't call method `is_sorted` on type `usize`
70
70
|
71
- help: you must surround the range in parentheses to call the `is_sorted` function
71
+ help: you must surround the range in parentheses to call its `is_sorted` function
72
72
|
73
73
LL | if (1..(end + 1)).is_sorted() {
74
74
| + +
@@ -88,7 +88,7 @@ error[E0689]: can't call method `take` on type `{integer}`
88
88
LL | let _res: i32 = 3..6.take(2).sum();
89
89
| ^^^^ can't call method `take` on type `{integer}`
90
90
|
91
- help: you must surround the range in parentheses to call the `take` function
91
+ help: you must surround the range in parentheses to call its `take` function
92
92
|
93
93
LL | let _res: i32 = (3..6).take(2).sum();
94
94
| + +
@@ -110,7 +110,7 @@ error[E0689]: can't call method `sum` on type `{integer}`
110
110
LL | let _sum: i32 = 3..6.sum();
111
111
| ^^^ can't call method `sum` on type `{integer}`
112
112
|
113
- help: you must surround the range in parentheses to call the `sum` function
113
+ help: you must surround the range in parentheses to call its `sum` function
114
114
|
115
115
LL | let _sum: i32 = (3..6).sum();
116
116
| + +
@@ -132,7 +132,7 @@ error[E0689]: can't call method `rev` on type `usize`
132
132
LL | for _a in a..=b.rev() {
133
133
| ^^^ can't call method `rev` on type `usize`
134
134
|
135
- help: you must surround the range in parentheses to call the `rev` function
135
+ help: you must surround the range in parentheses to call its `rev` function
136
136
|
137
137
LL | for _a in (a..=b).rev() {
138
138
| + +
@@ -143,7 +143,7 @@ error[E0689]: can't call method `contains` on type `{integer}`
143
143
LL | let _res = ..10.contains(3);
144
144
| ^^^^^^^^ can't call method `contains` on type `{integer}`
145
145
|
146
- help: you must surround the range in parentheses to call the `contains` function
146
+ help: you must surround the range in parentheses to call its `contains` function
147
147
|
148
148
LL | let _res = (..10).contains(3);
149
149
| + +
0 commit comments