@@ -4,7 +4,7 @@ error[E0689]: can't call method `rev` on type `usize`
44LL | for _i in 0..arr.len().rev() {
55 | ^^^ can't call method `rev` on type `usize`
66 |
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
88 |
99LL | for _i in (0..arr.len()).rev() {
1010 | + +
@@ -15,7 +15,7 @@ error[E0689]: can't call method `rev` on type `{integer}`
1515LL | for i in 1..11.rev() {
1616 | ^^^ can't call method `rev` on type `{integer}`
1717 |
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
1919 |
2020LL | for i in (1..11).rev() {
2121 | + +
@@ -26,7 +26,7 @@ error[E0689]: can't call method `rev` on type `usize`
2626LL | for i in 1..end.rev() {
2727 | ^^^ can't call method `rev` on type `usize`
2828 |
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
3030 |
3131LL | for i in (1..end).rev() {
3232 | + +
@@ -37,7 +37,7 @@ error[E0689]: can't call method `rev` on type `usize`
3737LL | for i in 1..(end + 1).rev() {
3838 | ^^^ can't call method `rev` on type `usize`
3939 |
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
4141 |
4242LL | for i in (1..(end + 1)).rev() {
4343 | + +
@@ -48,7 +48,7 @@ error[E0689]: can't call method `is_empty` on type `usize`
4848LL | if 1..(end + 1).is_empty() {
4949 | ^^^^^^^^ can't call method `is_empty` on type `usize`
5050 |
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
5252 |
5353LL | if (1..(end + 1)).is_empty() {
5454 | + +
@@ -68,7 +68,7 @@ error[E0689]: can't call method `is_sorted` on type `usize`
6868LL | if 1..(end + 1).is_sorted() {
6969 | ^^^^^^^^^ can't call method `is_sorted` on type `usize`
7070 |
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
7272 |
7373LL | if (1..(end + 1)).is_sorted() {
7474 | + +
@@ -88,7 +88,7 @@ error[E0689]: can't call method `take` on type `{integer}`
8888LL | let _res: i32 = 3..6.take(2).sum();
8989 | ^^^^ can't call method `take` on type `{integer}`
9090 |
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
9292 |
9393LL | let _res: i32 = (3..6).take(2).sum();
9494 | + +
@@ -110,7 +110,7 @@ error[E0689]: can't call method `sum` on type `{integer}`
110110LL | let _sum: i32 = 3..6.sum();
111111 | ^^^ can't call method `sum` on type `{integer}`
112112 |
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
114114 |
115115LL | let _sum: i32 = (3..6).sum();
116116 | + +
@@ -132,7 +132,7 @@ error[E0689]: can't call method `rev` on type `usize`
132132LL | for _a in a..=b.rev() {
133133 | ^^^ can't call method `rev` on type `usize`
134134 |
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
136136 |
137137LL | for _a in (a..=b).rev() {
138138 | + +
@@ -143,7 +143,7 @@ error[E0689]: can't call method `contains` on type `{integer}`
143143LL | let _res = ..10.contains(3);
144144 | ^^^^^^^^ can't call method `contains` on type `{integer}`
145145 |
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
147147 |
148148LL | let _res = (..10).contains(3);
149149 | + +
0 commit comments