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

The walk stopped after 200 commits: lines older than 553ed38 point at it.

Update clippy.toml msrv to match rust-version in Cargo.tomlDavid Tolnaybefore adoption553ed38

lines 1–8why, one step back
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}