☰
Debian Codegraph
@
1.0.103-1
/
/
tests
/
ui
/
chained-comparison.rs
☽
☼
tests/ui/chained-comparison.rs
code
plain
raw
symbols
SCIP
MIT
or
Apache-2.0
2019-2024 David Tolnay <
[email protected]
>
debian/copyright
1
use
anyhow::{ensure,
Result
};
2
3
fn
main
() ->
Result
<()> {
4
// `ensure!` must not partition this into `(false) == (false == true)`
5
// because Rust doesn't ordinarily allow this form of expression.
6
ensure
!
(
false
==
false
==
true
);
7
Ok
(())
8
}