File tree Expand file tree Collapse file tree 2 files changed +3
-11
lines changed Expand file tree Collapse file tree 2 files changed +3
-11
lines changed Original file line number Diff line number Diff line change 1
- fn foo ( ) {
1
+ fn main ( ) {
2
2
( 0 ..13 ) . collect <Vec <i32>>( ) ;
3
3
//~^ ERROR chained comparison
4
- }
5
-
6
- fn bar ( ) {
7
4
Vec <i32>:: new ( ) ;
8
5
//~^ ERROR chained comparison
9
- }
10
-
11
- fn qux ( ) {
12
6
( 0 ..13 ) . collect <Vec <i32>( ) ;
13
7
//~^ ERROR chained comparison
14
8
}
15
-
16
- fn main ( ) { }
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ LL | (0..13).collect::<Vec<i32>>();
9
9
| ^^
10
10
11
11
error: chained comparison operators require parentheses
12
- --> $DIR/issue-40396.rs:7 :8
12
+ --> $DIR/issue-40396.rs:4 :8
13
13
|
14
14
LL | Vec<i32>::new();
15
15
| ^^^^^
@@ -19,7 +19,7 @@ LL | Vec::<i32>::new();
19
19
| ^^
20
20
21
21
error: chained comparison operators require parentheses
22
- --> $DIR/issue-40396.rs:12 :20
22
+ --> $DIR/issue-40396.rs:6 :20
23
23
|
24
24
LL | (0..13).collect<Vec<i32>();
25
25
| ^^^^^
You can’t perform that action at this time.
0 commit comments