]>
Commit | Line | Data |
---|---|---|
dfeec247 | 1 | error: comparison operators cannot be chained |
0731742a | 2 | --> $DIR/issue-40396.rs:2:20 |
cc61c64b | 3 | | |
0731742a | 4 | LL | (0..13).collect<Vec<i32>>(); |
e74abb32 | 5 | | ^^^^^ |
cc61c64b | 6 | | |
dfeec247 XL |
7 | help: split the comparison into two... |
8 | | | |
9 | LL | (0..13).collect < Vec && Vec <i32>>(); | |
10 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
11 | help: ...or parenthesize one of the comparisons | |
12 | | | |
13 | LL | ((0..13).collect < Vec) <i32>>(); | |
14 | | ^^^^^^^^^^^^^^^^^^^^^^^^^ | |
e74abb32 XL |
15 | help: use `::<...>` instead of `<...>` to specify type arguments |
16 | | | |
17 | LL | (0..13).collect::<Vec<i32>>(); | |
18 | | ^^ | |
cc61c64b | 19 | |
dfeec247 | 20 | error: comparison operators cannot be chained |
e74abb32 | 21 | --> $DIR/issue-40396.rs:4:8 |
cc61c64b | 22 | | |
0731742a | 23 | LL | Vec<i32>::new(); |
e74abb32 XL |
24 | | ^^^^^ |
25 | | | |
26 | help: use `::<...>` instead of `<...>` to specify type arguments | |
cc61c64b | 27 | | |
e74abb32 XL |
28 | LL | Vec::<i32>::new(); |
29 | | ^^ | |
cc61c64b | 30 | |
dfeec247 | 31 | error: comparison operators cannot be chained |
e74abb32 | 32 | --> $DIR/issue-40396.rs:6:20 |
cc61c64b | 33 | | |
0731742a | 34 | LL | (0..13).collect<Vec<i32>(); |
e74abb32 XL |
35 | | ^^^^^ |
36 | | | |
dfeec247 XL |
37 | help: split the comparison into two... |
38 | | | |
39 | LL | (0..13).collect < Vec && Vec <i32>(); | |
40 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
41 | help: ...or parenthesize one of the comparisons | |
42 | | | |
43 | LL | ((0..13).collect < Vec) <i32>(); | |
44 | | ^^^^^^^^^^^^^^^^^^^^^^^^^ | |
e74abb32 | 45 | help: use `::<...>` instead of `<...>` to specify type arguments |
cc61c64b | 46 | | |
e74abb32 XL |
47 | LL | (0..13).collect::<Vec<i32>(); |
48 | | ^^ | |
cc61c64b | 49 | |
e1599b0c | 50 | error: aborting due to 3 previous errors |
cc61c64b | 51 |