2018-10-20 15:36:17 -05:00
|
|
|
error: chained comparison operators require parentheses
|
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;
|
|
|
|
| ^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: chained comparison operators require parentheses
|
2019-01-06 09:33:05 -06:00
|
|
|
--> $DIR/require-parens-for-chained-comparison.rs:8:11
|
2018-10-20 15:36:17 -05:00
|
|
|
|
|
|
|
|
LL | false == 0 < 2;
|
|
|
|
| ^^^^^^^^
|
|
|
|
|
|
|
|
error: chained comparison operators require parentheses
|
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>();
|
|
|
|
| ^^^^
|
|
|
|
|
|
|
|
|
= help: use `::<...>` instead of `<...>` if you meant to specify type arguments
|
|
|
|
= help: or use `(...)` if you meant to specify fn arguments
|
|
|
|
|
2019-01-06 09:33:05 -06:00
|
|
|
error[E0308]: mismatched types
|
|
|
|
--> $DIR/require-parens-for-chained-comparison.rs:8:14
|
|
|
|
|
|
|
|
|
LL | false == 0 < 2;
|
|
|
|
| ^ expected bool, found integer
|
|
|
|
|
|
|
|
|
= note: expected type `bool`
|
|
|
|
found type `{integer}`
|
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
|
|
|
--> $DIR/require-parens-for-chained-comparison.rs:8:18
|
|
|
|
|
|
|
|
|
LL | false == 0 < 2;
|
|
|
|
| ^ expected bool, found integer
|
|
|
|
|
|
|
|
|
= note: expected type `bool`
|
|
|
|
found type `{integer}`
|
|
|
|
|
|
|
|
error[E0369]: binary operation `<` cannot be applied to type `fn() {f::<_>}`
|
2019-03-27 12:13:09 -05:00
|
|
|
--> $DIR/require-parens-for-chained-comparison.rs:13:6
|
2019-01-06 09:33:05 -06:00
|
|
|
|
|
|
|
|
LL | f<X>();
|
2019-03-27 12:13:09 -05:00
|
|
|
| -^- X
|
|
|
|
| |
|
|
|
|
| fn() {f::<_>}
|
2019-01-06 09:33:05 -06:00
|
|
|
|
|
|
|
|
= note: an implementation of `std::cmp::PartialOrd` might be missing for `fn() {f::<_>}`
|
|
|
|
|
|
|
|
error: aborting due to 6 previous errors
|
2018-10-20 15:36:17 -05:00
|
|
|
|
2019-04-17 12:26:38 -05:00
|
|
|
Some errors have detailed explanations: E0308, E0369.
|
2019-01-06 09:33:05 -06:00
|
|
|
For more information about an error, try `rustc --explain E0308`.
|