]>
git.proxmox.com Git - rustc.git/blob - src/test/ui/self/arbitrary_self_types_struct.rs
11 fn x(self: &Rc
<Self>) -> i32 {
15 fn y(self: Rc
<Self>) -> i32 {
21 let foo
= Rc
::new(Foo {x: 3, y: 4}
);
22 assert_eq
!(3, foo
.x());
23 assert_eq
!(4, foo
.y());