rust-clippy/tests/ui/multi_assignments.rs
2022-08-26 17:05:52 +05:30

9 lines
196 B
Rust

#![warn(clippy::multi_assignments)]
fn main() {
let (mut a, mut b, mut c, mut d) = ((), (), (), ());
a = b = c;
a = b = c = d;
a = b = { c };
a = { b = c };
a = (b = c);
}