]> git.lizzy.rs Git - rust.git/blob - src/test/ui/did_you_mean/issue-40396.stderr
Auto merge of #54624 - arielb1:evaluate-outlives, r=nikomatsakis
[rust.git] / src / test / ui / did_you_mean / issue-40396.stderr
1 error: chained comparison operators require parentheses
2   --> $DIR/issue-40396.rs:12:37
3    |
4 LL |     println!("{:?}", (0..13).collect<Vec<i32>>()); //~ ERROR chained comparison
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
10 error: chained comparison operators require parentheses
11   --> $DIR/issue-40396.rs:16:25
12    |
13 LL |     println!("{:?}", Vec<i32>::new()); //~ ERROR chained comparison
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
19 error: chained comparison operators require parentheses
20   --> $DIR/issue-40396.rs:20:37
21    |
22 LL |     println!("{:?}", (0..13).collect<Vec<i32>()); //~ ERROR chained comparison
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
28 error: chained comparison operators require parentheses
29   --> $DIR/issue-40396.rs:20:41
30    |
31 LL |     println!("{:?}", (0..13).collect<Vec<i32>()); //~ ERROR chained comparison
32    |                                         ^^^^^^
33    |
34    = help: use `::<...>` instead of `<...>` if you meant to specify type arguments
35    = help: or use `(...)` if you meant to specify fn arguments
36
37 error: aborting due to 4 previous errors
38