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