fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #72883 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum49cae55760d

1.44.0
870 B35 linesraw
1error: comparison operators cannot be chained
2  --> $DIR/issue-40396.rs:2:20
3   |
4LL |     (0..13).collect<Vec<i32>>();
5   |                    ^   ^
6   |
7help: use `::<...>` instead of `<...>` to specify type arguments
8   |
9LL |     (0..13).collect::<Vec<i32>>();
10   |                    ^^
11
12error: comparison operators cannot be chained
13  --> $DIR/issue-40396.rs:4:8
14   |
15LL |     Vec<i32>::new();
16   |        ^   ^
17   |
18help: use `::<...>` instead of `<...>` to specify type arguments
19   |
20LL |     Vec::<i32>::new();
21   |        ^^
22
23error: comparison operators cannot be chained
24  --> $DIR/issue-40396.rs:6:20
25   |
26LL |     (0..13).collect<Vec<i32>();
27   |                    ^   ^
28   |
29help: use `::<...>` instead of `<...>` to specify type arguments
30   |
31LL |     (0..13).collect::<Vec<i32>();
32   |                    ^^
33
34error: aborting due to 3 previous errors
35