]> git.proxmox.com Git - rustc.git/blame - src/test/ui/did_you_mean/issue-40396.stderr
New upstream version 1.60.0+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 |
5099ac24 7help: use `::<...>` instead of `<...>` to specify lifetime, type, or const arguments
e74abb32
XL
8 |
9LL | (0..13).collect::<Vec<i32>>();
94222f64 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 |
5099ac24 18help: use `::<...>` instead of `<...>` to specify lifetime, type, or const arguments
cc61c64b 19 |
e74abb32 20LL | Vec::<i32>::new();
94222f64 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 |
5099ac24 29help: use `::<...>` instead of `<...>` to specify lifetime, type, or const arguments
cc61c64b 30 |
e74abb32 31LL | (0..13).collect::<Vec<i32>();
94222f64 32 | ++
cc61c64b 33
94222f64 34error: expected one of `!`, `.`, `::`, `;`, `?`, `else`, `{`, or an operator, found `,`
1b1a35ee
XL
35 --> $DIR/issue-40396.rs:11:43
36 |
37LL | let x = std::collections::HashMap<i128, i128>::new();
94222f64 38 | ^ expected one of 8 possible tokens
1b1a35ee 39 |
5099ac24 40help: use `::<...>` instead of `<...>` to specify lifetime, type, or const arguments
1b1a35ee
XL
41 |
42LL | let x = std::collections::HashMap::<i128, i128>::new();
94222f64 43 | ++
1b1a35ee
XL
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 |
5099ac24 51help: use `::<...>` instead of `<...>` to specify lifetime, type, or const arguments
1b1a35ee
XL
52 |
53LL | std::collections::HashMap::<i128, i128>::new()
94222f64 54 | ++
1b1a35ee
XL
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 |
5099ac24 62help: use `::<...>` instead of `<...>` to specify lifetime, type, or const arguments
1b1a35ee
XL
63 |
64LL | std::collections::HashMap::<i128, i128>::new();
94222f64 65 | ++
1b1a35ee
XL
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 |
5099ac24 73help: use `::<...>` instead of `<...>` to specify lifetime, type, or const arguments
1b1a35ee
XL
74 |
75LL | std::collections::HashMap::<i128, i128>::new(1, 2);
94222f64 76 | ++
1b1a35ee
XL
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`.