]>
Commit | Line | Data |
---|---|---|
dfeec247 | 1 | error: comparison operators cannot be chained |
0731742a | 2 | --> $DIR/require-parens-for-chained-comparison.rs:5:11 |
0bf4aa26 XL |
3 | | |
4 | LL | false == false == false; | |
ba9703b0 XL |
5 | | ^^ ^^ |
6 | | | |
7 | help: split the comparison into two | |
8 | | | |
9 | LL | false == false && false == false; | |
10 | | ^^^^^^^^ | |
0bf4aa26 | 11 | |
dfeec247 | 12 | error: comparison operators cannot be chained |
ba9703b0 | 13 | --> $DIR/require-parens-for-chained-comparison.rs:9:11 |
0bf4aa26 XL |
14 | | |
15 | LL | false == 0 < 2; | |
ba9703b0 XL |
16 | | ^^ ^ |
17 | | | |
18 | help: parenthesize the comparison | |
19 | | | |
20 | LL | false == (0 < 2); | |
21 | | ^ ^ | |
0bf4aa26 | 22 | |
dfeec247 | 23 | error: comparison operators cannot be chained |
0731742a | 24 | --> $DIR/require-parens-for-chained-comparison.rs:13:6 |
0bf4aa26 XL |
25 | | |
26 | LL | f<X>(); | |
ba9703b0 | 27 | | ^ ^ |
0bf4aa26 | 28 | | |
29967ef6 | 29 | help: use `::<...>` instead of `<...>` to specify type or const arguments |
e74abb32 XL |
30 | | |
31 | LL | f::<X>(); | |
32 | | ^^ | |
33 | ||
dfeec247 | 34 | error: comparison operators cannot be chained |
e74abb32 XL |
35 | --> $DIR/require-parens-for-chained-comparison.rs:17:6 |
36 | | | |
37 | LL | f<Result<Option<X>, Option<Option<X>>>(1, 2); | |
ba9703b0 | 38 | | ^ ^ |
dfeec247 | 39 | | |
29967ef6 | 40 | help: use `::<...>` instead of `<...>` to specify type or const arguments |
e74abb32 XL |
41 | | |
42 | LL | f::<Result<Option<X>, Option<Option<X>>>(1, 2); | |
43 | | ^^ | |
44 | ||
dfeec247 | 45 | error: comparison operators cannot be chained |
ba9703b0 | 46 | --> $DIR/require-parens-for-chained-comparison.rs:22:21 |
e74abb32 XL |
47 | | |
48 | LL | let _ = identity<u8>; | |
ba9703b0 | 49 | | ^ ^ |
e74abb32 | 50 | | |
29967ef6 | 51 | = help: use `::<...>` instead of `<...>` to specify type or const arguments |
0bf4aa26 XL |
52 | = help: or use `(...)` if you meant to specify fn arguments |
53 | ||
ba9703b0 | 54 | error: aborting due to 5 previous errors |
0bf4aa26 | 55 |