rust/src/test/ui/parser/require-parens-for-chained-comparison.stderr

24 lines
700 B
Plaintext
Raw Normal View History

2018-10-20 15:36:17 -05:00
error: chained comparison operators require parentheses
--> $DIR/require-parens-for-chained-comparison.rs:16:11
|
LL | false == false == false;
| ^^^^^^^^^^^^^^^^^
error: chained comparison operators require parentheses
--> $DIR/require-parens-for-chained-comparison.rs:19:11
|
LL | false == 0 < 2;
| ^^^^^^^^
error: chained comparison operators require parentheses
--> $DIR/require-parens-for-chained-comparison.rs:22:6
|
LL | f<X>();
| ^^^^
|
= help: use `::<...>` instead of `<...>` if you meant to specify type arguments
= help: or use `(...)` if you meant to specify fn arguments
error: aborting due to 3 previous errors