about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorTim Chevalier <chevalier@alum.wellesley.edu>2013-03-28 19:00:49 -0700
committerTim Chevalier <chevalier@alum.wellesley.edu>2013-03-28 19:00:49 -0700
commitbf519dad6b4deeaeebb0c13a88e09f77758431a3 (patch)
tree76a6d45d84411d2c37418acf6305e5edbabbc68d /src
parente16f94f6a184d2426841a23847edfd0cc6b83aa7 (diff)
downloadrust-bf519dad6b4deeaeebb0c13a88e09f77758431a3.tar.gz
rust-bf519dad6b4deeaeebb0c13a88e09f77758431a3.zip
testsuite: Update and un-xfail test for #4335
Diffstat (limited to 'src')
-rw-r--r--src/test/compile-fail/issue-4335.rs5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/test/compile-fail/issue-4335.rs b/src/test/compile-fail/issue-4335.rs
index ae147e628e4..5f907b35e41 100644
--- a/src/test/compile-fail/issue-4335.rs
+++ b/src/test/compile-fail/issue-4335.rs
@@ -1,4 +1,4 @@
-// Copyright 2012 The Rust Project Developers. See the COPYRIGHT
+// Copyright 2012-2013 The Rust Project Developers. See the COPYRIGHT
 // file at the top-level directory of this distribution and at
 // http://rust-lang.org/COPYRIGHT.
 //
@@ -8,10 +8,9 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-// xfail-test
 fn id<T>(t: T) -> T { t }
 
-fn f<T>(v: &'r T) -> &'r fn()->T { id::<&'r fn()->T>(|| *v) } //~ ERROR ???
+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
 
 fn main() {
     let v = &5;