]> git.proxmox.com Git - rustc.git/blame - tests/rustdoc-ui/deref-generic.rs
New upstream version 1.73.0+dfsg1
[rustc.git] / tests / rustdoc-ui / deref-generic.rs
CommitLineData
5869c6ff
XL
1// check-pass
2// #81395: Fix ICE when recursing into Deref target only differing in type args
3
4pub struct Generic<T>(T);
5
6impl<'a> std::ops::Deref for Generic<&'a mut ()> {
7 type Target = Generic<&'a ()>;
8 fn deref(&self) -> &Self::Target {
9 unimplemented!()
10 }
11}
12
13impl<'a> Generic<&'a ()> {
14 pub fn some_method(&self) {}
15}