1 // check-pass
2 
3 #![allow(non_snake_case)]
4 
5 use std::rc::Rc;
6 
7 struct Struct { }
8 
9 impl Struct {
take_self(self, f: &u32) -> &u3210     fn take_self(self, f: &u32) -> &u32 {
11         f
12     }
13 
take_Self(self: Self, f: &u32) -> &u3214     fn take_Self(self: Self, f: &u32) -> &u32 {
15         f
16     }
17 
take_Box_Self(self: Box<Self>, f: &u32) -> &u3218     fn take_Box_Self(self: Box<Self>, f: &u32) -> &u32 {
19         f
20     }
21 
take_Box_Box_Self(self: Box<Box<Self>>, f: &u32) -> &u3222     fn take_Box_Box_Self(self: Box<Box<Self>>, f: &u32) -> &u32 {
23         f
24     }
25 
take_Rc_Self(self: Rc<Self>, f: &u32) -> &u3226     fn take_Rc_Self(self: Rc<Self>, f: &u32) -> &u32 {
27         f
28     }
29 
take_Box_Rc_Self(self: Box<Rc<Self>>, f: &u32) -> &u3230     fn take_Box_Rc_Self(self: Box<Rc<Self>>, f: &u32) -> &u32 {
31         f
32     }
33 }
34 
main()35 fn main() { }
36