2015-01-07 18:44:01 -06:00
|
|
|
fn main() {
|
|
|
|
false == false == false;
|
2020-01-10 18:19:09 -06:00
|
|
|
//~^ ERROR comparison operators cannot be chained
|
2020-03-09 22:21:37 -05:00
|
|
|
//~| HELP split the comparison into two
|
2015-01-07 18:44:01 -06:00
|
|
|
|
|
|
|
false == 0 < 2;
|
2020-01-10 18:19:09 -06:00
|
|
|
//~^ ERROR comparison operators cannot be chained
|
2020-03-09 22:21:37 -05:00
|
|
|
//~| HELP parenthesize the comparison
|
2015-01-07 18:44:01 -06:00
|
|
|
|
|
|
|
f<X>();
|
2020-01-10 18:19:09 -06:00
|
|
|
//~^ ERROR comparison operators cannot be chained
|
2022-01-13 17:44:17 -06:00
|
|
|
//~| HELP use `::<...>` instead of `<...>` to specify lifetime, type, or const arguments
|
2019-09-29 21:07:26 -05:00
|
|
|
|
|
|
|
f<Result<Option<X>, Option<Option<X>>>(1, 2);
|
2020-01-10 18:19:09 -06:00
|
|
|
//~^ ERROR comparison operators cannot be chained
|
2022-01-13 17:44:17 -06:00
|
|
|
//~| HELP use `::<...>` instead of `<...>` to specify lifetime, type, or const arguments
|
|
|
|
|
|
|
|
let _ = f<u8, i8>();
|
|
|
|
//~^ ERROR expected one of
|
|
|
|
//~| HELP use `::<...>` instead of `<...>` to specify lifetime, type, or const arguments
|
|
|
|
|
|
|
|
let _ = f<'_, i8>();
|
|
|
|
//~^ ERROR expected one of
|
|
|
|
//~| HELP use `::<...>` instead of `<...>` to specify lifetime, type, or const arguments
|
2022-02-02 12:33:13 -06:00
|
|
|
//~| ERROR expected
|
2022-09-01 13:48:09 -05:00
|
|
|
//~| HELP add `'` to close the char literal
|
2022-01-13 17:44:17 -06:00
|
|
|
|
|
|
|
f<'_>();
|
|
|
|
//~^ comparison operators cannot be chained
|
|
|
|
//~| HELP use `::<...>` instead of `<...>` to specify lifetime, type, or const arguments
|
2022-02-02 12:33:13 -06:00
|
|
|
//~| ERROR expected
|
2022-09-01 13:48:09 -05:00
|
|
|
//~| HELP add `'` to close the char literal
|
2019-10-01 13:24:05 -05:00
|
|
|
|
2022-01-13 17:44:17 -06:00
|
|
|
let _ = f<u8>;
|
2020-01-10 18:19:09 -06:00
|
|
|
//~^ ERROR comparison operators cannot be chained
|
2022-01-13 17:44:17 -06:00
|
|
|
//~| HELP use `::<...>` instead of `<...>` to specify lifetime, type, or const arguments
|
2019-10-01 13:24:05 -05:00
|
|
|
//~| HELP or use `(...)` if you meant to specify fn arguments
|
2015-01-07 18:44:01 -06:00
|
|
|
}
|