We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent edd81f8 commit f1d7458Copy full SHA for f1d7458
[refs]
@@ -1,2 +1,2 @@
1
---
2
-refs/heads/master: 4bffa5e13a5a103a3ced7e868bd2eb673755a7e6
+refs/heads/master: 1097463d96fb549464ba37a3d2dbaa6a837d18eb
trunk/src/test/compile-fail/pinned-deep-copy.rs
@@ -0,0 +1,16 @@
+// xfail-test
+// expected error: mismatched kinds
3
+
4
+resource r(i: @mutable int) {
5
+ *i = *i + 1;
6
+}
7
8
+fn main() {
9
+ let i = @mutable 0;
10
+ {
11
+ // Can't do this copy
12
+ let x = ~~~{y: r(i)};
13
+ let z = x;
14
+ }
15
+ log_err *i;
16
0 commit comments