Skip to content

Commit c7e0b4c

Browse files
committed
---
yaml --- r: 16055 b: refs/heads/try c: 266fdd0 h: refs/heads/master i: 16053: cbbb959 16051: 91de26e 16047: f74484c v: v3
1 parent 834313a commit c7e0b4c

File tree

2 files changed

+17
-1
lines changed

2 files changed

+17
-1
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
refs/heads/master: 61b1875c16de39c166b0f4d54bba19f9c6777d1a
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 4a81779abd786ff22d71434c6d9a5917ea4cdfff
5-
refs/heads/try: 9e6a0680346a661819243091ed43daf737fea4f8
5+
refs/heads/try: 266fdd032b3b5ab7c573352f8bfbcb948d794dd6
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
// xfail-test #2443
2+
// exec-env:RUST_POISON_ON_FREE
3+
4+
fn it_takes_two(x: @int, -y: @int) -> int {
5+
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

Comments
 (0)