fork/rust

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

borsAuto merge of #66089 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum4560ea788cb

1.39.0
961 B29 linesraw
1error: chained comparison operators require parentheses
2  --> $DIR/issue-40396.rs:2:20
3   |
4LL |     (0..13).collect<Vec<i32>>();
5   |                    ^^^^^^^^
6   |
7   = help: use `::<...>` instead of `<...>` if you meant to specify type arguments
8   = help: or use `(...)` if you meant to specify fn arguments
9
10error: chained comparison operators require parentheses
11  --> $DIR/issue-40396.rs:7:8
12   |
13LL |     Vec<i32>::new();
14   |        ^^^^^^^
15   |
16   = help: use `::<...>` instead of `<...>` if you meant to specify type arguments
17   = help: or use `(...)` if you meant to specify fn arguments
18
19error: chained comparison operators require parentheses
20  --> $DIR/issue-40396.rs:12:20
21   |
22LL |     (0..13).collect<Vec<i32>();
23   |                    ^^^^^^^^
24   |
25   = help: use `::<...>` instead of `<...>` if you meant to specify type arguments
26   = help: or use `(...)` if you meant to specify fn arguments
27
28error: aborting due to 3 previous errors
29