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