struct A<'a> { func: &'a fn() -> Option } impl<'a> A<'a> { fn call(&self) -> Option { (*self.func)() } } fn foo() -> Option { None } fn create() -> A<'static> { A { func: &foo, //~ ERROR mismatched types } } fn main() { let a = create(); a.call(); }