File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change 8
8
// option. This file may not be copied, modified, or distributed
9
9
// except according to those terms.
10
10
11
- // xfail-test
12
-
13
11
// Issue #2263.
14
12
15
13
// Here, `f` is a function that takes a pointer `x` and a function
16
14
// `g`, where `g` requires its argument `y` to be in the same region
17
15
// 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 ) ) ) {
19
17
// `f` should be the type that `wants_same_region` wants, but
20
18
// right now the compiler complains that it isn't.
21
19
wants_same_region ( f ) ;
22
20
}
23
21
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 ) ) ) {
25
23
}
26
24
27
25
pub fn main ( ) {
You can’t perform that action at this time.
0 commit comments