]>
git.proxmox.com Git - rustc.git/blob - tests/ui/self/elision/multiple-ref-self.rs
3 #![feature(arbitrary_self_types)]
4 #![allow(non_snake_case)]
6 use std
::marker
::PhantomData
;
12 struct Wrap
<T
, P
>(T
, PhantomData
<P
>);
14 impl<T
, P
> Deref
for Wrap
<T
, P
> {
16 fn deref(&self) -> &T { &self.0 }
20 // Test using multiple `&Self`:
22 fn wrap_ref_Self_ref_Self(self: Wrap
<&Self, &Self>, f
: &u8) -> &u8 {
26 fn box_wrap_ref_Self_ref_Self(self: Box
<Wrap
<&Self, &Self>>, f
: &u32) -> &u32 {
30 fn pin_wrap_ref_Self_ref_Self(self: Pin
<Wrap
<&Self, &Self>>, f
: &u32) -> &u32 {
34 fn box_box_wrap_ref_Self_ref_Self(self: Box
<Box
<Wrap
<&Self, &Self>>>, f
: &u32) -> &u32 {
38 fn box_pin_wrap_ref_Self_ref_Self(self: Box
<Pin
<Wrap
<&Self, &Self>>>, f
: &u32) -> &u32 {