]> git.proxmox.com Git - rustc.git/blame - src/test/ui/did_you_mean/issue-40396.stderr
New upstream version 1.42.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>>();
e74abb32 5 | ^^^^^
cc61c64b 6 |
dfeec247
XL
7help: split the comparison into two...
8 |
9LL | (0..13).collect < Vec && Vec <i32>>();
10 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
11help: ...or parenthesize one of the comparisons
12 |
13LL | ((0..13).collect < Vec) <i32>>();
14 | ^^^^^^^^^^^^^^^^^^^^^^^^^
e74abb32
XL
15help: use `::<...>` instead of `<...>` to specify type arguments
16 |
17LL | (0..13).collect::<Vec<i32>>();
18 | ^^
cc61c64b 19
dfeec247 20error: comparison operators cannot be chained
e74abb32 21 --> $DIR/issue-40396.rs:4:8
cc61c64b 22 |
0731742a 23LL | Vec<i32>::new();
e74abb32
XL
24 | ^^^^^
25 |
26help: use `::<...>` instead of `<...>` to specify type arguments
cc61c64b 27 |
e74abb32
XL
28LL | Vec::<i32>::new();
29 | ^^
cc61c64b 30
dfeec247 31error: comparison operators cannot be chained
e74abb32 32 --> $DIR/issue-40396.rs:6:20
cc61c64b 33 |
0731742a 34LL | (0..13).collect<Vec<i32>();
e74abb32
XL
35 | ^^^^^
36 |
dfeec247
XL
37help: split the comparison into two...
38 |
39LL | (0..13).collect < Vec && Vec <i32>();
40 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
41help: ...or parenthesize one of the comparisons
42 |
43LL | ((0..13).collect < Vec) <i32>();
44 | ^^^^^^^^^^^^^^^^^^^^^^^^^
e74abb32 45help: use `::<...>` instead of `<...>` to specify type arguments
cc61c64b 46 |
e74abb32
XL
47LL | (0..13).collect::<Vec<i32>();
48 | ^^
cc61c64b 49
e1599b0c 50error: aborting due to 3 previous errors
cc61c64b 51