]>
Commit | Line | Data |
---|---|---|
dc9dc135 XL |
1 | // check-pass |
2 | ||
dc9dc135 XL |
3 | #![allow(non_snake_case)] |
4 | ||
5 | use std::rc::Rc; | |
6 | ||
7 | struct Struct { } | |
8 | ||
9 | impl Struct { | |
10 | fn ref_Struct(self: Struct, f: &u32) -> &u32 { | |
11 | f | |
12 | } | |
13 | ||
14 | fn box_Struct(self: Box<Struct>, f: &u32) -> &u32 { | |
15 | f | |
16 | } | |
17 | ||
18 | fn rc_Struct(self: Rc<Struct>, f: &u32) -> &u32 { | |
19 | f | |
20 | } | |
21 | ||
22 | fn box_box_Struct(self: Box<Box<Struct>>, f: &u32) -> &u32 { | |
23 | f | |
24 | } | |
25 | ||
26 | fn box_rc_Struct(self: Box<Rc<Struct>>, f: &u32) -> &u32 { | |
27 | f | |
28 | } | |
29 | } | |
30 | ||
31 | fn main() { } |