File tree Expand file tree Collapse file tree 3 files changed +4
-3
lines changed
trunk/src/test/compile-fail Expand file tree Collapse file tree 3 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 1
1
---
2
- refs/heads/master: 09a7bc55dbd2bd4e05253b2bd72e5ecfb5cf7dd2
2
+ refs/heads/master: cbeff8b8b3bd28e99a3a034a41c8bdcd830fa884
3
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
4
refs/heads/snap-stage3: c89417130f042c58adc60012e7cddc4ef70b70b9
5
5
refs/heads/try: 5204084bd2e46af7cc6e0147430e44dd0d657bbb
Original file line number Diff line number Diff line change @@ -24,6 +24,7 @@ fn a(x: &int) {
24
24
//~^ ERROR cannot borrow
25
25
let c2 = || set ( & mut * x) ;
26
26
//~^ ERROR cannot borrow
27
+ //~| ERROR closure requires unique access
27
28
}
28
29
29
30
fn main ( ) {
Original file line number Diff line number Diff line change 13
13
struct B < T > ;
14
14
15
15
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
18
18
}
You can’t perform that action at this time.
0 commit comments