fn fn_types(a: &'a isize, //~ ERROR undeclared lifetime
            b: Box<for<'a> FnOnce(&'a isize,
                                  &'b isize, //~ ERROR undeclared lifetime
                                  Box<for<'b> FnOnce(&'a isize,
                                                     &'b isize)>,
                                  &'b isize)>, //~ ERROR undeclared lifetime
            c: &'a isize) //~ ERROR undeclared lifetime
{
}
// Test nesting of lifetimes in fn type declarations
Test nesting of lifetimes in fn type declarations
Test nesting of lifetimes in fn type declarations
fn fn_types(a: &'a isize, //~ ERROR undeclared lifetime
            b: Box<for<'a> FnOnce(&'a isize,
                                  &'b isize, //~ ERROR undeclared lifetime
                                  Box<for<'b> FnOnce(&'a isize,
                                                     &'b isize)>,
                                  &'b isize)>, //~ ERROR undeclared lifetime
            c: &'a isize) //~ ERROR undeclared lifetime
{
}
fn fn_types ( a : & ' a isize , //~ ERROR undeclared lifetime b : Box < for < ' a > FnOnce ( & ' a isize , & ' b isize , //~ ERROR undeclared lifetime Box < for < ' b > FnOnce ( & ' a isize , & ' b isize ) > , & ' b isize ) > , //~ ERROR undeclared lifetime c : & ' a isize ) //~ ERROR undeclared lifetime { }
Test nesting of lifetimes in fn type declarations
Test nesting of lifetimes in fn type declarations
a
&'a isize
b
Box<for<'a> FnOnce(&'a isize,
                                  &'b isize, //~ ERROR undeclared lifetime
                                  Box<for<'b> FnOnce(&'a isize,
                                                     &'b isize)>,
                                  &'b isize)>
c
&'a isize
a
&'a isize
b
Box<for<'a> FnOnce(&'a isize,
                                  &'b isize, //~ ERROR undeclared lifetime
                                  Box<for<'b> FnOnce(&'a isize,
                                                     &'b isize)>,
                                  &'b isize)>
c
&'a isize