blob: 525be5d20e27ff3a892c8c19a575c2b64b60fd11 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
fn f<T>() {}
struct X;
fn main() {
false == false == false;
//~^ ERROR: chained comparison operators require parentheses
false == 0 < 2;
//~^ ERROR: chained comparison operators require parentheses
//~| ERROR: mismatched types
//~| ERROR: mismatched types
f<X>();
//~^ ERROR: chained comparison operators require parentheses
//~| ERROR: binary operation `<` cannot be applied to type `fn() {f::<_>}`
//~| HELP: use `::<...>` instead of `<...>`
//~| HELP: or use `(...)`
}
|