Working with OwningRef

I would like work with MetadataRef. I try implement rustc::middle::cstore::MetadataLoader, but I need create variable of MetadataRef.
How I can create variable of type MetadataRef=rustc_data_structures::owning_ref::OwningRef<Box<Erased>,[u8]?
I had tried to do this way:
But it’s does not compiled on my phone

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.