2 // #81395: Fix ICE when recursing into Deref target only differing in type args
4 pub struct Generic<T>(T);
6 impl<'a> std::ops::Deref for Generic<&'a mut ()> {
7 type Target = Generic<&'a ()>;
8 fn deref(&self) -> &Self::Target {
13 impl<'a> Generic<&'a ()> {
14 pub fn some_method(&self) {}