Skip to content
Myr

chained-comparison.rs

This file

Path

tests/ui/chained-comparison.rs

8 lines · 252 bytes · Rust

Last changed by

Not known.

History of this file

Take it

1use anyhow::{ensure, Result};23fn 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}