// Regression test for #81650structFoo<'a>{x: &'amut&'ai32,}impl<'a>Foo<'a>{fnbar<F,T>(&self,f: F)whereF: FnOnce(&Foo<'a>)-> T,F: 'a,{}}traitTest{fntest(&self);}fnfunc<T: Test>(foo: &Foo,t: T){foo.bar(move|_|{//~^ ERROR the parameter type `T` may not live long enought.test();});}fnmain(){}