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