Skip to content

Commit f2d46c5

Browse files
committed
---
yaml --- r: 167855 b: refs/heads/master c: cbeff8b h: refs/heads/master i: 167853: ca394b6 167851: 69dad69 167847: 559432f 167839: ba12064 v: v3
1 parent 8be781c commit f2d46c5

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: 09a7bc55dbd2bd4e05253b2bd72e5ecfb5cf7dd2
2+
refs/heads/master: cbeff8b8b3bd28e99a3a034a41c8bdcd830fa884
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: c89417130f042c58adc60012e7cddc4ef70b70b9
55
refs/heads/try: 5204084bd2e46af7cc6e0147430e44dd0d657bbb

trunk/src/test/compile-fail/borrowck-closures-mut-of-imm.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ fn a(x: &int) {
2424
//~^ ERROR cannot borrow
2525
let c2 = || set(&mut *x);
2626
//~^ ERROR cannot borrow
27+
//~| ERROR closure requires unique access
2728
}
2829

2930
fn main() {

trunk/src/test/compile-fail/issue-17551.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,6 @@
1313
struct B<T>;
1414

1515
fn main() {
16-
let foo = B; //~ ERROR unable to infer enough type information
17-
let closure = |:| foo;
16+
let foo = B;
17+
let closure = |:| foo; //~ ERROR unable to infer enough type information
1818
}

0 commit comments

Comments
 (0)