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

24 lines
698 B
Plaintext
Raw Normal View History

2018-10-20 15:36:17 -05:00
error: chained comparison operators require parentheses
2018-12-25 09:56:47 -06:00
--> $DIR/require-parens-for-chained-comparison.rs:6:11
2018-10-20 15:36:17 -05:00
|
LL | false == false == false;
| ^^^^^^^^^^^^^^^^^
error: chained comparison operators require parentheses
2018-12-25 09:56:47 -06:00
--> $DIR/require-parens-for-chained-comparison.rs:9:11
2018-10-20 15:36:17 -05:00
|
LL | false == 0 < 2;
| ^^^^^^^^
error: chained comparison operators require parentheses
2018-12-25 09:56:47 -06:00
--> $DIR/require-parens-for-chained-comparison.rs:12:6
2018-10-20 15:36:17 -05:00
|
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