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 85a5d7d commit 4f56db7Copy full SHA for 4f56db7
[refs]
@@ -1,5 +1,5 @@
1
---
2
-refs/heads/master: 9e6a0680346a661819243091ed43daf737fea4f8
+refs/heads/master: 266fdd032b3b5ab7c573352f8bfbcb948d794dd6
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
refs/heads/snap-stage3: 4a81779abd786ff22d71434c6d9a5917ea4cdfff
5
refs/heads/try: 2898dcc5d97da9427ac367542382b6239d9c0bbf
trunk/src/test/run-pass/by-val-and-by-move.rs
@@ -0,0 +1,16 @@
+// xfail-test #2443
+// exec-env:RUST_POISON_ON_FREE
+
+fn it_takes_two(x: @int, -y: @int) -> int {
+ free(y);
6
+ #debug["about to deref"];
7
+ *x
8
+}
9
10
+fn free<T>(-_t: T) {
11
12
13
+fn main() {
14
+ let z = @3;
15
+ assert 3 == it_takes_two(z, z);
16
0 commit comments