2 // This tests for an ICE (and, if ignored, subsequent LLVM abort) when
3 // a lifetime-parametric fn is passed into a context whose expected
4 // type has a differing lifetime parameterization.
10 fn call<T>(s: T, functions: &Vec<for <'n> fn(&'n T)>) {
11 for function in functions {
16 fn f(a: &A) { println!("a holds {}", a._a); }
19 let a = A { _a: &10 };
21 let vec: Vec<for <'u,'v> fn(&'u A<'v>)> = vec![f];