Skip to content

Commit add60bb

Browse files
committed
Test now passes
1 parent 7e89a51 commit add60bb

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/test/run-pass/regions-fn-subtyping-2.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,20 +8,18 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
// xfail-test
12-
1311
// Issue #2263.
1412

1513
// Here, `f` is a function that takes a pointer `x` and a function
1614
// `g`, where `g` requires its argument `y` to be in the same region
1715
// that `x` is in.
18-
fn has_same_region(f: &fn(x: &a.int, g: &fn(y: &a.int))) {
16+
fn has_same_region(f: &fn<'a>(x: &'a int, g: &fn(y: &'a int))) {
1917
// `f` should be the type that `wants_same_region` wants, but
2018
// right now the compiler complains that it isn't.
2119
wants_same_region(f);
2220
}
2321

24-
fn wants_same_region(_f: &fn(x: &b.int, g: &fn(y: &b.int))) {
22+
fn wants_same_region(_f: &fn<'b>(x: &'b int, g: &fn(y: &'b int))) {
2523
}
2624

2725
pub fn main() {

0 commit comments

Comments
 (0)