control flow, primitive types and vectors
This commit is contained in:
@@ -10,8 +10,8 @@ mod tests {
|
||||
fn move_semantics4() {
|
||||
let mut x = Vec::new();
|
||||
let y = &mut x;
|
||||
let z = &mut x;
|
||||
y.push(42);
|
||||
let z = &mut x;
|
||||
z.push(13);
|
||||
assert_eq!(x, [42, 13]);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user