1 // compile-flags: -Zborrowck=mir
5 fn bar<'a>(input: &'a u32, f: fn(&'a u32) -> &'a u32) -> &'static u32 {
6 // Here the NLL checker must relate the types in `f` to the types
7 // in `g`. These are related via the `UnsafeFnPointer` cast.
8 let g: unsafe fn(_) -> _ = f;
10 //~^ ERROR lifetime may not live long enough