]>
git.proxmox.com Git - rustc.git/blob - src/test/ui/self/elision/ref-assoc.rs
3 #![allow(non_snake_case)]
13 impl Trait
for Struct
{
14 type AssocType
= Self;
18 fn ref_AssocType(self: &<Struct
as Trait
>::AssocType
, f
: &u32) -> &u32 {
22 fn box_ref_AssocType(self: Box
<&<Struct
as Trait
>::AssocType
>, f
: &u32) -> &u32 {
26 fn pin_ref_AssocType(self: Pin
<&<Struct
as Trait
>::AssocType
>, f
: &u32) -> &u32 {
30 fn box_box_ref_AssocType(self: Box
<Box
<&<Struct
as Trait
>::AssocType
>>, f
: &u32) -> &u32 {
34 fn box_pin_ref_AssocType(self: Box
<Pin
<&<Struct
as Trait
>::AssocType
>>, f
: &u32) -> &u32 {