Skip to content

Commit 1fc52bb

Browse files
committed
---
yaml --- r: 5564 b: refs/heads/master c: b49f468 h: refs/heads/master v: v3
1 parent 2f37f3e commit 1fc52bb

File tree

3 files changed

+37
-1
lines changed

3 files changed

+37
-1
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
---
2-
refs/heads/master: 1796abc3ef76e9e99571fbd30536310d4a4a8558
2+
refs/heads/master: b49f4689f54f8ab6b3d7350d4902236a78e5852f
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
// xfail-test
2+
// error-pattern:mismatched kind
3+
4+
resource r(i: @mutable int) {
5+
*i = *i + 1;
6+
}
7+
8+
fn main() {
9+
let a = @mutable 0;
10+
{
11+
let i <- r(a);
12+
// Can't copy into here
13+
let j <- [i];
14+
}
15+
log_err *a;
16+
// this is no good
17+
assert *a == 2;
18+
}
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
// xfail-test
2+
// error-pattern:mismatched kind
3+
4+
resource r(i: @mutable int) {
5+
*i = *i + 1;
6+
}
7+
8+
fn main() {
9+
let a = @mutable 0;
10+
{
11+
let i <- ~r(a);
12+
// Can't copy into here
13+
let j <- [i];
14+
}
15+
log_err *a;
16+
// this is no good
17+
assert *a == 2;
18+
}

0 commit comments

Comments
 (0)