mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-28 15:41:10 +00:00
10 lines
196 B
Rust
10 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);
|
||
|
}
|