blob: bc64beb1b939d9207588c6a9f1edca81d1ac8b7e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
// check-pass
// #81395: Fix ICE when recursing into Deref target only differing in type args
pub struct Generic<T>(T);
impl<'a> std::ops::Deref for Generic<&'a mut ()> {
type Target = Generic<&'a ()>;
fn deref(&self) -> &Self::Target {
unimplemented!()
}
}
impl<'a> Generic<&'a ()> {
pub fn some_method(&self) {}
}
|