// Check that we enforce WF conditions related to regions also for// types in fns.#![allow(dead_code)]structMustBeCopy<T:Copy>{t: T}structFoo<T>{// needs T: 'staticx: fn()-> &'staticT//~ ERROR E0310}structBar<T>{// needs T: Copyx: fn(&'staticT)//~ ERROR E0310}fnmain(){}