Files
Notes/notes-service/vendor/anyhow/tests/ui/chained-comparison.rs
T
2026-08-01 16:11:49 +03:00

9 lines
252 B
Rust

use anyhow::{ensure, Result};
fn main() -> Result<()> {
// `ensure!` must not partition this into `(false) == (false == true)`
// because Rust doesn't ordinarily allow this form of expression.
ensure!(false == false == true);
Ok(())
}