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 ead2f39 commit ff8bbbdCopy full SHA for ff8bbbd
[refs]
@@ -1,2 +1,2 @@
1
---
2
-refs/heads/master: 3f41563cc9591e03ac661ec1817bf105618c6629
+refs/heads/master: 3bb70359140062125405c6f592bd23dc34280e4b
trunk/src/test/run-pass/unique-copy-box.rs
@@ -0,0 +1,12 @@
+use std;
+import std::sys::rustrt::refcount;
3
+
4
+fn main() {
5
+ let i = ~@1;
6
+ let j = ~@2;
7
+ let rc1 = refcount(*i);
8
+ let j = i;
9
+ let rc2 = refcount(*i);
10
+ log_err #fmt("rc1: %u rc2: %u", rc1, rc2);
11
+ assert rc1 + 1u == rc2;
12
+}
0 commit comments