]>
git.proxmox.com Git - rustc.git/blob - src/test/ui/parser/require-parens-for-chained-comparison.rs
5 false == false == false;
6 //~^ ERROR comparison operators cannot be chained
7 //~| HELP split the comparison into two
10 //~^ ERROR comparison operators cannot be chained
11 //~| HELP parenthesize the comparison
14 //~^ ERROR comparison operators cannot be chained
15 //~| HELP use `::<...>` instead of `<...>` to specify type arguments
17 f
<Result
<Option
<X
>, Option
<Option
<X
>>>(1, 2);
18 //~^ ERROR comparison operators cannot be chained
19 //~| HELP use `::<...>` instead of `<...>` to specify type arguments
21 use std
::convert
::identity
;
23 //~^ ERROR comparison operators cannot be chained
24 //~| HELP use `::<...>` instead of `<...>` to specify type arguments
25 //~| HELP or use `(...)` if you meant to specify fn arguments