3 #![warn(unused_assignments)]
7 // Assignment occurs left-to-right.
8 // However, we emit warnings when this happens, so it is clear that this is happening.
9 (a, a) = (0, 1); //~ WARN value assigned to `a` is never read
12 // We can't always tell when a variable is being assigned to twice, which is why we don't try
13 // to emit an error, which would be fallible.
15 (*foo(&mut x), *foo(&mut x)) = (5, 6);
19 fn foo<'a>(x: &'a mut u32) -> &'a mut u32 {