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 ( ) {
22 ( 0 ..13 ) . collect <Vec <i32>>( ) ;
33 //~^ ERROR chained comparison
4- }
5-
6- fn bar ( ) {
74 Vec <i32>:: new ( ) ;
85 //~^ ERROR chained comparison
9- }
10-
11- fn qux ( ) {
126 ( 0 ..13 ) . collect <Vec <i32>( ) ;
137 //~^ ERROR chained comparison
148}
15-
16- fn main ( ) { }
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ LL | (0..13).collect::<Vec<i32>>();
99 | ^^
1010
1111error: chained comparison operators require parentheses
12- --> $DIR/issue-40396.rs:7 :8
12+ --> $DIR/issue-40396.rs:4 :8
1313 |
1414LL | Vec<i32>::new();
1515 | ^^^^^
@@ -19,7 +19,7 @@ LL | Vec::<i32>::new();
1919 | ^^
2020
2121error: chained comparison operators require parentheses
22- --> $DIR/issue-40396.rs:12 :20
22+ --> $DIR/issue-40396.rs:6 :20
2323 |
2424LL | (0..13).collect<Vec<i32>();
2525 | ^^^^^
You can’t perform that action at this time.
0 commit comments