2020-01-11 00:19:09 +00:00
|
|
|
error: comparison operators cannot be chained
|
2018-12-27 00:07:00 +00:00
|
|
|
--> $DIR/issue-40396.rs:2:20
|
2017-03-14 02:07:47 +00:00
|
|
|
|
|
2018-12-16 17:23:27 +00:00
|
|
|
LL | (0..13).collect<Vec<i32>>();
|
2020-03-10 03:21:37 +00:00
|
|
|
| ^ ^
|
2019-10-24 05:20:58 +00:00
|
|
|
|
|
2022-01-13 23:44:17 +00:00
|
|
|
help: use `::<...>` instead of `<...>` to specify lifetime, type, or const arguments
|
2017-03-14 02:07:47 +00:00
|
|
|
|
|
2019-09-30 02:07:26 +00:00
|
|
|
LL | (0..13).collect::<Vec<i32>>();
|
2021-06-22 02:07:19 +00:00
|
|
|
| ++
|
2017-03-14 02:07:47 +00:00
|
|
|
|
2020-01-11 00:19:09 +00:00
|
|
|
error: comparison operators cannot be chained
|
2020-08-31 17:24:37 +00:00
|
|
|
--> $DIR/issue-40396.rs:5:8
|
2017-03-14 02:07:47 +00:00
|
|
|
|
|
2018-12-16 17:23:27 +00:00
|
|
|
LL | Vec<i32>::new();
|
2020-03-10 03:21:37 +00:00
|
|
|
| ^ ^
|
2019-10-24 05:20:58 +00:00
|
|
|
|
|
2022-01-13 23:44:17 +00:00
|
|
|
help: use `::<...>` instead of `<...>` to specify lifetime, type, or const arguments
|
2017-03-14 02:07:47 +00:00
|
|
|
|
|
2019-09-30 19:36:44 +00:00
|
|
|
LL | Vec::<i32>::new();
|
2021-06-22 02:07:19 +00:00
|
|
|
| ++
|
2017-03-14 02:07:47 +00:00
|
|
|
|
2020-01-11 00:19:09 +00:00
|
|
|
error: comparison operators cannot be chained
|
2020-08-31 17:24:37 +00:00
|
|
|
--> $DIR/issue-40396.rs:8:20
|
2017-03-14 02:07:47 +00:00
|
|
|
|
|
2018-12-16 17:23:27 +00:00
|
|
|
LL | (0..13).collect<Vec<i32>();
|
2020-03-10 03:21:37 +00:00
|
|
|
| ^ ^
|
2020-01-11 00:19:09 +00:00
|
|
|
|
|
2022-01-13 23:44:17 +00:00
|
|
|
help: use `::<...>` instead of `<...>` to specify lifetime, type, or const arguments
|
2017-03-14 02:07:47 +00:00
|
|
|
|
|
2019-09-30 02:07:26 +00:00
|
|
|
LL | (0..13).collect::<Vec<i32>();
|
2021-06-22 02:07:19 +00:00
|
|
|
| ++
|
2017-03-14 02:07:47 +00:00
|
|
|
|
2021-08-02 00:55:48 +00:00
|
|
|
error: expected one of `!`, `.`, `::`, `;`, `?`, `else`, `{`, or an operator, found `,`
|
2020-08-31 17:24:37 +00:00
|
|
|
--> $DIR/issue-40396.rs:11:43
|
|
|
|
|
|
|
|
|
LL | let x = std::collections::HashMap<i128, i128>::new();
|
2021-08-02 00:55:48 +00:00
|
|
|
| ^ expected one of 8 possible tokens
|
2020-08-31 17:24:37 +00:00
|
|
|
|
|
2022-01-13 23:44:17 +00:00
|
|
|
help: use `::<...>` instead of `<...>` to specify lifetime, type, or const arguments
|
2020-08-31 17:24:37 +00:00
|
|
|
|
|
|
|
|
LL | let x = std::collections::HashMap::<i128, i128>::new();
|
2021-06-22 02:07:19 +00:00
|
|
|
| ++
|
2020-08-31 17:24:37 +00:00
|
|
|
|
|
|
|
error: expected one of `!`, `.`, `::`, `;`, `?`, `{`, `}`, or an operator, found `,`
|
|
|
|
--> $DIR/issue-40396.rs:15:39
|
|
|
|
|
|
|
|
|
LL | std::collections::HashMap<i128, i128>::new()
|
|
|
|
| ^ expected one of 8 possible tokens
|
|
|
|
|
|
2022-01-13 23:44:17 +00:00
|
|
|
help: use `::<...>` instead of `<...>` to specify lifetime, type, or const arguments
|
2020-08-31 17:24:37 +00:00
|
|
|
|
|
|
|
|
LL | std::collections::HashMap::<i128, i128>::new()
|
2021-06-22 02:07:19 +00:00
|
|
|
| ++
|
2020-08-31 17:24:37 +00:00
|
|
|
|
|
|
|
error: expected one of `!`, `.`, `::`, `;`, `?`, `{`, `}`, or an operator, found `,`
|
|
|
|
--> $DIR/issue-40396.rs:20:39
|
|
|
|
|
|
|
|
|
LL | std::collections::HashMap<i128, i128>::new();
|
|
|
|
| ^ expected one of 8 possible tokens
|
|
|
|
|
|
2022-01-13 23:44:17 +00:00
|
|
|
help: use `::<...>` instead of `<...>` to specify lifetime, type, or const arguments
|
2020-08-31 17:24:37 +00:00
|
|
|
|
|
|
|
|
LL | std::collections::HashMap::<i128, i128>::new();
|
2021-06-22 02:07:19 +00:00
|
|
|
| ++
|
2020-08-31 17:24:37 +00:00
|
|
|
|
|
|
|
error: expected one of `!`, `.`, `::`, `;`, `?`, `{`, `}`, or an operator, found `,`
|
|
|
|
--> $DIR/issue-40396.rs:25:39
|
|
|
|
|
|
|
|
|
LL | std::collections::HashMap<i128, i128>::new(1, 2);
|
|
|
|
| ^ expected one of 8 possible tokens
|
|
|
|
|
|
2022-01-13 23:44:17 +00:00
|
|
|
help: use `::<...>` instead of `<...>` to specify lifetime, type, or const arguments
|
2020-08-31 17:24:37 +00:00
|
|
|
|
|
|
|
|
LL | std::collections::HashMap::<i128, i128>::new(1, 2);
|
2021-06-22 02:07:19 +00:00
|
|
|
| ++
|
2020-08-31 17:24:37 +00:00
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
|
|
|
--> $DIR/issue-40396.rs:13:17
|
|
|
|
|
|
|
|
|
LL | let x: () = 42;
|
|
|
|
| -- ^^ expected `()`, found integer
|
|
|
|
| |
|
|
|
|
| expected due to this
|
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
|
|
|
--> $DIR/issue-40396.rs:18:17
|
|
|
|
|
|
|
|
|
LL | let x: () = 42;
|
|
|
|
| -- ^^ expected `()`, found integer
|
|
|
|
| |
|
|
|
|
| expected due to this
|
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
|
|
|
--> $DIR/issue-40396.rs:22:21
|
|
|
|
|
|
|
|
|
LL | let x: () = 42;
|
|
|
|
| -- ^^ expected `()`, found integer
|
|
|
|
| |
|
|
|
|
| expected due to this
|
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
|
|
|
--> $DIR/issue-40396.rs:27:21
|
|
|
|
|
|
|
|
|
LL | let x: () = 32;
|
|
|
|
| -- ^^ expected `()`, found integer
|
|
|
|
| |
|
|
|
|
| expected due to this
|
|
|
|
|
|
|
|
error: aborting due to 11 previous errors
|
2017-03-14 02:07:47 +00:00
|
|
|
|
2020-08-31 17:24:37 +00:00
|
|
|
For more information about this error, try `rustc --explain E0308`.
|