2020-01-10 18:19:09 -06:00
|
|
|
error: comparison operators cannot be chained
|
2019-01-06 09:33:05 -06:00
|
|
|
--> $DIR/require-parens-for-chained-comparison.rs:5:11
|
2018-10-20 15:36:17 -05:00
|
|
|
|
|
|
|
|
LL | false == false == false;
|
2020-03-09 22:21:37 -05:00
|
|
|
| ^^ ^^
|
|
|
|
|
|
|
|
|
help: split the comparison into two
|
|
|
|
|
|
|
|
|
LL | false == false && false == false;
|
|
|
|
| ^^^^^^^^
|
2018-10-20 15:36:17 -05:00
|
|
|
|
2020-01-10 18:19:09 -06:00
|
|
|
error: comparison operators cannot be chained
|
2020-03-09 22:21:37 -05:00
|
|
|
--> $DIR/require-parens-for-chained-comparison.rs:9:11
|
2018-10-20 15:36:17 -05:00
|
|
|
|
|
|
|
|
LL | false == 0 < 2;
|
2020-03-09 22:21:37 -05:00
|
|
|
| ^^ ^
|
|
|
|
|
|
|
|
|
help: parenthesize the comparison
|
|
|
|
|
|
|
|
|
LL | false == (0 < 2);
|
|
|
|
| ^ ^
|
2018-10-20 15:36:17 -05:00
|
|
|
|
2020-01-10 18:19:09 -06:00
|
|
|
error: comparison operators cannot be chained
|
2019-01-06 09:33:05 -06:00
|
|
|
--> $DIR/require-parens-for-chained-comparison.rs:13:6
|
2018-10-20 15:36:17 -05:00
|
|
|
|
|
|
|
|
LL | f<X>();
|
2020-03-09 22:21:37 -05:00
|
|
|
| ^ ^
|
2019-10-24 00:20:58 -05:00
|
|
|
|
|
2019-10-03 15:22:18 -05:00
|
|
|
help: use `::<...>` instead of `<...>` to specify type arguments
|
2018-10-20 15:36:17 -05:00
|
|
|
|
|
2019-09-29 21:07:26 -05:00
|
|
|
LL | f::<X>();
|
|
|
|
| ^^
|
|
|
|
|
2020-01-10 18:19:09 -06:00
|
|
|
error: comparison operators cannot be chained
|
2019-09-29 21:07:26 -05:00
|
|
|
--> $DIR/require-parens-for-chained-comparison.rs:17:6
|
|
|
|
|
|
|
|
|
LL | f<Result<Option<X>, Option<Option<X>>>(1, 2);
|
2020-03-09 22:21:37 -05:00
|
|
|
| ^ ^
|
2020-01-10 18:19:09 -06:00
|
|
|
|
|
2019-10-03 15:22:18 -05:00
|
|
|
help: use `::<...>` instead of `<...>` to specify type arguments
|
2019-09-29 21:07:26 -05:00
|
|
|
|
|
|
|
|
LL | f::<Result<Option<X>, Option<Option<X>>>(1, 2);
|
|
|
|
| ^^
|
2018-10-20 15:36:17 -05:00
|
|
|
|
2020-01-10 18:19:09 -06:00
|
|
|
error: comparison operators cannot be chained
|
2020-03-09 22:21:37 -05:00
|
|
|
--> $DIR/require-parens-for-chained-comparison.rs:22:21
|
2019-10-01 13:24:05 -05:00
|
|
|
|
|
|
|
|
LL | let _ = identity<u8>;
|
2020-03-09 22:21:37 -05:00
|
|
|
| ^ ^
|
2019-10-01 13:24:05 -05:00
|
|
|
|
|
2019-10-03 15:22:18 -05:00
|
|
|
= help: use `::<...>` instead of `<...>` to specify type arguments
|
2019-10-01 13:24:05 -05:00
|
|
|
= help: or use `(...)` if you meant to specify fn arguments
|
|
|
|
|
2020-03-09 22:21:37 -05:00
|
|
|
error: aborting due to 5 previous errors
|
2018-10-20 15:36:17 -05:00
|
|
|
|