Move /src/test to /tests
This commit is contained in:
parent
ca855e6e42
commit
cf2dff2b1e
27592 changed files with 0 additions and 0 deletions
15
tests/rustdoc-ui/deref-generic.rs
Normal file
15
tests/rustdoc-ui/deref-generic.rs
Normal file
|
@ -0,0 +1,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) {}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue