1 error: comparison operators cannot be chained
2 --> $DIR/issue-40396.rs:2:20
4 LL | (0..13).collect<Vec<i32>>();
7 help: use `::<...>` instead of `<...>` to specify type or const arguments
9 LL | (0..13).collect::<Vec<i32>>();
12 error: comparison operators cannot be chained
13 --> $DIR/issue-40396.rs:5:8
18 help: use `::<...>` instead of `<...>` to specify type or const arguments
20 LL | Vec::<i32>::new();
23 error: comparison operators cannot be chained
24 --> $DIR/issue-40396.rs:8:20
26 LL | (0..13).collect<Vec<i32>();
29 help: use `::<...>` instead of `<...>` to specify type or const arguments
31 LL | (0..13).collect::<Vec<i32>();
34 error: expected one of `!`, `.`, `::`, `;`, `?`, `else`, `{`, or an operator, found `,`
35 --> $DIR/issue-40396.rs:11:43
37 LL | let x = std::collections::HashMap<i128, i128>::new();
38 | ^ expected one of 8 possible tokens
40 help: use `::<...>` instead of `<...>` to specify type or const arguments
42 LL | let x = std::collections::HashMap::<i128, i128>::new();
45 error: expected one of `!`, `.`, `::`, `;`, `?`, `{`, `}`, or an operator, found `,`
46 --> $DIR/issue-40396.rs:15:39
48 LL | std::collections::HashMap<i128, i128>::new()
49 | ^ expected one of 8 possible tokens
51 help: use `::<...>` instead of `<...>` to specify type or const arguments
53 LL | std::collections::HashMap::<i128, i128>::new()
56 error: expected one of `!`, `.`, `::`, `;`, `?`, `{`, `}`, or an operator, found `,`
57 --> $DIR/issue-40396.rs:20:39
59 LL | std::collections::HashMap<i128, i128>::new();
60 | ^ expected one of 8 possible tokens
62 help: use `::<...>` instead of `<...>` to specify type or const arguments
64 LL | std::collections::HashMap::<i128, i128>::new();
67 error: expected one of `!`, `.`, `::`, `;`, `?`, `{`, `}`, or an operator, found `,`
68 --> $DIR/issue-40396.rs:25:39
70 LL | std::collections::HashMap<i128, i128>::new(1, 2);
71 | ^ expected one of 8 possible tokens
73 help: use `::<...>` instead of `<...>` to specify type or const arguments
75 LL | std::collections::HashMap::<i128, i128>::new(1, 2);
78 error[E0308]: mismatched types
79 --> $DIR/issue-40396.rs:13:17
82 | -- ^^ expected `()`, found integer
84 | expected due to this
86 error[E0308]: mismatched types
87 --> $DIR/issue-40396.rs:18:17
90 | -- ^^ expected `()`, found integer
92 | expected due to this
94 error[E0308]: mismatched types
95 --> $DIR/issue-40396.rs:22:21
98 | -- ^^ expected `()`, found integer
100 | expected due to this
102 error[E0308]: mismatched types
103 --> $DIR/issue-40396.rs:27:21
106 | -- ^^ expected `()`, found integer
108 | expected due to this
110 error: aborting due to 11 previous errors
112 For more information about this error, try `rustc --explain E0308`.