summaryrefslogtreecommitdiffstats
path: root/src/tools/clippy/tests/ui/multi_assignments.rs
blob: b186bf8bbdb424874495f06e80a9a1ddd6cedef3 (plain)
1
2
3
4
5
6
7
8
9
#![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);
}