]> git.lizzy.rs Git - rust.git/blob - tests/ui/did_you_mean/issue-40396.stderr
Rollup merge of #106664 - chenyukang:yukang/fix-106597-remove-lseek, r=cuviper
[rust.git] / tests / ui / did_you_mean / issue-40396.stderr
1 error: comparison operators cannot be chained
2   --> $DIR/issue-40396.rs:2:20
3    |
4 LL |     (0..13).collect<Vec<i32>>();
5    |                    ^   ^
6    |
7 help: use `::<...>` instead of `<...>` to specify lifetime, type, or const arguments
8    |
9 LL |     (0..13).collect::<Vec<i32>>();
10    |                    ++
11
12 error: comparison operators cannot be chained
13   --> $DIR/issue-40396.rs:5:8
14    |
15 LL |     Vec<i32>::new();
16    |        ^   ^
17    |
18 help: use `::<...>` instead of `<...>` to specify lifetime, type, or const arguments
19    |
20 LL |     Vec::<i32>::new();
21    |        ++
22
23 error: comparison operators cannot be chained
24   --> $DIR/issue-40396.rs:8:20
25    |
26 LL |     (0..13).collect<Vec<i32>();
27    |                    ^   ^
28    |
29 help: use `::<...>` instead of `<...>` to specify lifetime, type, or const arguments
30    |
31 LL |     (0..13).collect::<Vec<i32>();
32    |                    ++
33
34 error: expected one of `!`, `.`, `::`, `;`, `?`, `else`, `{`, or an operator, found `,`
35   --> $DIR/issue-40396.rs:11:43
36    |
37 LL |     let x = std::collections::HashMap<i128, i128>::new();
38    |                                           ^ expected one of 8 possible tokens
39    |
40 help: use `::<...>` instead of `<...>` to specify lifetime, type, or const arguments
41    |
42 LL |     let x = std::collections::HashMap::<i128, i128>::new();
43    |                                      ++
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    |
51 help: use `::<...>` instead of `<...>` to specify lifetime, type, or const arguments
52    |
53 LL |         std::collections::HashMap::<i128, i128>::new()
54    |                                  ++
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    |
62 help: use `::<...>` instead of `<...>` to specify lifetime, type, or const arguments
63    |
64 LL |         std::collections::HashMap::<i128, i128>::new();
65    |                                  ++
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    |
73 help: use `::<...>` instead of `<...>` to specify lifetime, type, or const arguments
74    |
75 LL |         std::collections::HashMap::<i128, i128>::new(1, 2);
76    |                                  ++
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
111
112 For more information about this error, try `rustc --explain E0308`.