7 fn fun<T>(t: T) -> Wrap<T> {
11 pub trait Trait<'de> {
12 fn do_stuff(_: Wrap<&'de mut Self>);
15 impl<'a> Trait<'a> for () {
16 fn do_stuff(_: Wrap<&'a mut Self>) {}
19 fn fun2(t: &mut Stuff) -> () {
20 let Stuff { inner, .. } = t;
21 Trait::do_stuff({ fun(&mut *inner) });
22 //~^ ERROR the trait bound `*mut (): Trait<'_>` is not satisfied