We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a426ebd commit 92eaa2fCopy full SHA for 92eaa2f
[refs]
@@ -1,2 +1,2 @@
1
---
2
-refs/heads/master: a88d9effbca3a228136dff82b4d47a8bf8276b64
+refs/heads/master: 2d5e085eb9fb22f8aa22bb7a19313e97be87a286
trunk/src/test/run-pass/unique-in-vec-copy.rs
@@ -0,0 +1,13 @@
+fn main() {
+ let a = [~mutable 10];
3
+ let b = a;
4
+
5
+ assert *a[0] == 10;
6
+ assert *b[0] == 10;
7
8
+ // This should only modify the value in a, not b
9
+ *a[0] = 20;
10
11
+ assert *a[0] == 20;
12
13
+}
0 commit comments