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