Closed
Description
pub struct InlineStorage {}
pub struct InlineStorageHandle<T: ?Sized> {}
pub unsafe trait Storage {
type Handle<T: ?Sized>;
fn create<T: ?Sized>() -> Self::Handle<T>;
}
unsafe impl Storage for InlineStorage {
type Handle<T: ?Sized> = InlineStorageHandle<T>;
}
rust-analyzer version: rust-analyzer version: bc56920 2022-04-08 nightly
rustc version: rustc 1.61.0-nightly (76d770ac2 2022-04-02)
relevant settings:
{
"rust-analyzer.checkOnSave.command": "clippy",
"rust-analyzer.procMacro.enable": true,
"rust-analyzer.experimental.procAttrMacros": true,
"rust-analyzer.cargo.allFeatures": true,
}