1 error: comparison operators cannot be chained
2 --> $DIR/require-parens-for-chained-comparison.rs:2:11
4 LL | false == false == false;
7 help: split the comparison into two
9 LL | false == false && false == false;
12 error: comparison operators cannot be chained
13 --> $DIR/require-parens-for-chained-comparison.rs:6:11
18 help: parenthesize the comparison
20 LL | false == (0 < 2);
23 error: comparison operators cannot be chained
24 --> $DIR/require-parens-for-chained-comparison.rs:10:6
29 help: use `::<...>` instead of `<...>` to specify lifetime, type, or const arguments
34 error: comparison operators cannot be chained
35 --> $DIR/require-parens-for-chained-comparison.rs:14:6
37 LL | f<Result<Option<X>, Option<Option<X>>>(1, 2);
40 help: use `::<...>` instead of `<...>` to specify lifetime, type, or const arguments
42 LL | f::<Result<Option<X>, Option<Option<X>>>(1, 2);
45 error: expected one of `!`, `.`, `::`, `;`, `?`, `else`, `{`, or an operator, found `,`
46 --> $DIR/require-parens-for-chained-comparison.rs:18:17
48 LL | let _ = f<u8, i8>();
49 | ^ expected one of 8 possible tokens
51 help: use `::<...>` instead of `<...>` to specify lifetime, type, or const arguments
53 LL | let _ = f::<u8, i8>();
56 error: expected `while`, `for`, `loop` or `{` after a label
57 --> $DIR/require-parens-for-chained-comparison.rs:22:17
59 LL | let _ = f<'_, i8>();
60 | ^ expected `while`, `for`, `loop` or `{` after a label
62 help: add `'` to close the char literal
64 LL | let _ = f<'_', i8>();
67 error: expected one of `.`, `:`, `;`, `?`, `else`, `for`, `loop`, `while`, or an operator, found `,`
68 --> $DIR/require-parens-for-chained-comparison.rs:22:17
70 LL | let _ = f<'_, i8>();
71 | ^ expected one of 9 possible tokens
73 help: use `::<...>` instead of `<...>` to specify lifetime, type, or const arguments
75 LL | let _ = f::<'_, i8>();
78 error: expected `while`, `for`, `loop` or `{` after a label
79 --> $DIR/require-parens-for-chained-comparison.rs:28:9
82 | ^ expected `while`, `for`, `loop` or `{` after a label
84 help: add `'` to close the char literal
89 error: comparison operators cannot be chained
90 --> $DIR/require-parens-for-chained-comparison.rs:28:6
95 help: use `::<...>` instead of `<...>` to specify lifetime, type, or const arguments
100 error: comparison operators cannot be chained
101 --> $DIR/require-parens-for-chained-comparison.rs:34:14
106 = help: use `::<...>` instead of `<...>` to specify lifetime, type, or const arguments
107 = help: or use `(...)` if you meant to specify fn arguments
109 error: aborting due to 10 previous errors