]> git.lizzy.rs Git - rust.git/blob - src/test/ui/self/elision/struct.rs
Rollup merge of #63055 - Mark-Simulacrum:save-analysis-clean-2, r=Xanewok
[rust.git] / src / test / ui / self / elision / struct.rs
1 // check-pass
2
3 #![feature(arbitrary_self_types)]
4 #![allow(non_snake_case)]
5
6 use std::rc::Rc;
7
8 struct Struct { }
9
10 impl Struct {
11     fn ref_Struct(self: Struct, f: &u32) -> &u32 {
12         f
13     }
14
15     fn box_Struct(self: Box<Struct>, f: &u32) -> &u32 {
16         f
17     }
18
19     fn rc_Struct(self: Rc<Struct>, f: &u32) -> &u32 {
20         f
21     }
22
23     fn box_box_Struct(self: Box<Box<Struct>>, f: &u32) -> &u32 {
24         f
25     }
26
27     fn box_rc_Struct(self: Box<Rc<Struct>>, f: &u32) -> &u32 {
28         f
29     }
30 }
31
32 fn main() { }