]>
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>>(); |
ba9703b0 | 5 | | ^ ^ |
cc61c64b | 6 | | |
5099ac24 | 7 | help: use `::<...>` instead of `<...>` to specify lifetime, type, or const arguments |
e74abb32 XL |
8 | | |
9 | LL | (0..13).collect::<Vec<i32>>(); | |
94222f64 | 10 | | ++ |
cc61c64b | 11 | |
dfeec247 | 12 | error: comparison operators cannot be chained |
1b1a35ee | 13 | --> $DIR/issue-40396.rs:5:8 |
cc61c64b | 14 | | |
0731742a | 15 | LL | Vec<i32>::new(); |
ba9703b0 | 16 | | ^ ^ |
e74abb32 | 17 | | |
5099ac24 | 18 | help: use `::<...>` instead of `<...>` to specify lifetime, type, or const arguments |
cc61c64b | 19 | | |
e74abb32 | 20 | LL | Vec::<i32>::new(); |
94222f64 | 21 | | ++ |
cc61c64b | 22 | |
dfeec247 | 23 | error: comparison operators cannot be chained |
1b1a35ee | 24 | --> $DIR/issue-40396.rs:8:20 |
cc61c64b | 25 | | |
0731742a | 26 | LL | (0..13).collect<Vec<i32>(); |
ba9703b0 | 27 | | ^ ^ |
dfeec247 | 28 | | |
5099ac24 | 29 | help: use `::<...>` instead of `<...>` to specify lifetime, type, or const arguments |
cc61c64b | 30 | | |
e74abb32 | 31 | LL | (0..13).collect::<Vec<i32>(); |
94222f64 | 32 | | ++ |
cc61c64b | 33 | |
94222f64 | 34 | error: expected one of `!`, `.`, `::`, `;`, `?`, `else`, `{`, or an operator, found `,` |
1b1a35ee XL |
35 | --> $DIR/issue-40396.rs:11:43 |
36 | | | |
37 | LL | let x = std::collections::HashMap<i128, i128>::new(); | |
94222f64 | 38 | | ^ expected one of 8 possible tokens |
1b1a35ee | 39 | | |
5099ac24 | 40 | help: use `::<...>` instead of `<...>` to specify lifetime, type, or const arguments |
1b1a35ee XL |
41 | | |
42 | LL | let x = std::collections::HashMap::<i128, i128>::new(); | |
94222f64 | 43 | | ++ |
1b1a35ee XL |
44 | |
45 | error: expected one of `!`, `.`, `::`, `;`, `?`, `{`, `}`, or an operator, found `,` | |
46 | --> $DIR/issue-40396.rs:15:39 | |
47 | | | |
48 | LL | std::collections::HashMap<i128, i128>::new() | |
49 | | ^ expected one of 8 possible tokens | |
50 | | | |
5099ac24 | 51 | help: use `::<...>` instead of `<...>` to specify lifetime, type, or const arguments |
1b1a35ee XL |
52 | | |
53 | LL | std::collections::HashMap::<i128, i128>::new() | |
94222f64 | 54 | | ++ |
1b1a35ee XL |
55 | |
56 | error: expected one of `!`, `.`, `::`, `;`, `?`, `{`, `}`, or an operator, found `,` | |
57 | --> $DIR/issue-40396.rs:20:39 | |
58 | | | |
59 | LL | std::collections::HashMap<i128, i128>::new(); | |
60 | | ^ expected one of 8 possible tokens | |
61 | | | |
5099ac24 | 62 | help: use `::<...>` instead of `<...>` to specify lifetime, type, or const arguments |
1b1a35ee XL |
63 | | |
64 | LL | std::collections::HashMap::<i128, i128>::new(); | |
94222f64 | 65 | | ++ |
1b1a35ee XL |
66 | |
67 | error: expected one of `!`, `.`, `::`, `;`, `?`, `{`, `}`, or an operator, found `,` | |
68 | --> $DIR/issue-40396.rs:25:39 | |
69 | | | |
70 | LL | std::collections::HashMap<i128, i128>::new(1, 2); | |
71 | | ^ expected one of 8 possible tokens | |
72 | | | |
5099ac24 | 73 | help: use `::<...>` instead of `<...>` to specify lifetime, type, or const arguments |
1b1a35ee XL |
74 | | |
75 | LL | std::collections::HashMap::<i128, i128>::new(1, 2); | |
94222f64 | 76 | | ++ |
1b1a35ee XL |
77 | |
78 | error[E0308]: mismatched types | |
79 | --> $DIR/issue-40396.rs:13:17 | |
80 | | | |
81 | LL | let x: () = 42; | |
82 | | -- ^^ expected `()`, found integer | |
83 | | | | |
84 | | expected due to this | |
85 | ||
86 | error[E0308]: mismatched types | |
87 | --> $DIR/issue-40396.rs:18:17 | |
88 | | | |
89 | LL | let x: () = 42; | |
90 | | -- ^^ expected `()`, found integer | |
91 | | | | |
92 | | expected due to this | |
93 | ||
94 | error[E0308]: mismatched types | |
95 | --> $DIR/issue-40396.rs:22:21 | |
96 | | | |
97 | LL | let x: () = 42; | |
98 | | -- ^^ expected `()`, found integer | |
99 | | | | |
100 | | expected due to this | |
101 | ||
102 | error[E0308]: mismatched types | |
103 | --> $DIR/issue-40396.rs:27:21 | |
104 | | | |
105 | LL | let x: () = 32; | |
106 | | -- ^^ expected `()`, found integer | |
107 | | | | |
108 | | expected due to this | |
109 | ||
110 | error: aborting due to 11 previous errors | |
cc61c64b | 111 | |
1b1a35ee | 112 | For more information about this error, try `rustc --explain E0308`. |