2017-11-30 09:43:32 -06:00
|
|
|
#![allow(dead_code)]
|
|
|
|
|
|
|
|
fn bar<'a, 'b>() -> fn(&'a u32, &'b u32) -> &'a u32 {
|
|
|
|
let g: fn(_, _) -> _ = |_x, y| y;
|
|
|
|
g
|
2018-12-11 15:49:40 -06:00
|
|
|
//~^ ERROR lifetime may not live long enough
|
2017-11-30 09:43:32 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {}
|