-
-
Notifications
You must be signed in to change notification settings - Fork 14.3k
Closed
Labels
C-bugCategory: This is a bug.Category: This is a bug.T-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.Relevant to the rustdoc team, which will review and decide on the PR/issue.
Description
https://doc.rust-lang.org/nightly/std/primitive.pointer.html#method.offset
The implementation looks like:
pub unsafe fn offset(self, count: isize) -> *const T where T: SizedBut rustdoc only shows:
unsafe fn offset(self, count: isize) -> *const TI tried to reproduce this with a struct type, but rustdoc seemed to do the right thing for this case.
pub struct Ptr<T: ?Sized>(*const T);
impl<T: ?Sized> Ptr<T> {
pub fn offset(self, count: isize) -> Ptr<T> where T: Sized {
unimplemented!()
}
}Metadata
Metadata
Assignees
Labels
C-bugCategory: This is a bug.Category: This is a bug.T-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.Relevant to the rustdoc team, which will review and decide on the PR/issue.