]>
git.proxmox.com Git - rustc.git/blob - src/test/ui/self/arbitrary_self_types_nested.rs
14 fn receive_trait(self: &Arc
<Rc
<Box
<Self>>>) -> u32;
17 const TRAIT_MAGIC
: u32 = 42;
18 const INHERENT_MAGIC
: u32 = 1995;
21 fn receive_trait(self: &Arc
<Rc
<Box
<Self>>>) -> u32 {
27 fn receive_inherent(self: &Arc
<Rc
<Box
<Self>>>) -> u32 {
33 let ty
= <Arc
<Rc
<Box
<Ty
>>>>::default();
34 assert_eq
!(TRAIT_MAGIC
, ty
.receive_trait());
35 assert_eq
!(INHERENT_MAGIC
, ty
.receive_inherent());