Skip to content

Commit 16445c5

Browse files
committed
auto merge of #5617 : catamorphism/rust/issue-4335, r=catamorphism
2 parents a985bc5 + bf519da commit 16445c5

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/test/compile-fail/issue-4335.rs

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2012 The Rust Project Developers. See the COPYRIGHT
1+
// Copyright 2012-2013 The Rust Project Developers. See the COPYRIGHT
22
// file at the top-level directory of this distribution and at
33
// http://rust-lang.org/COPYRIGHT.
44
//
@@ -8,10 +8,9 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
// xfail-test
1211
fn id<T>(t: T) -> T { t }
1312

14-
fn f<T>(v: &'r T) -> &'r fn()->T { id::<&'r fn()->T>(|| *v) } //~ ERROR ???
13+
fn f<'r, T>(v: &'r T) -> &'r fn()->T { id::<&'r fn()->T>(|| *v) } //~ ERROR cannot infer an appropriate lifetime due to conflicting requirements
1514

1615
fn main() {
1716
let v = &5;

0 commit comments

Comments
 (0)