Skip to content

rustdoc should show the Sized? keyword #19191

Closed
@japaric

Description

@japaric

Otherwise the documentation is incorrectly stating that the trait, type parameters, etc are always sized.

Example: Deref

The trait definition should look like this:

pub trait Deref<Sized? Result> for Sized? { /* .. */ }

And the implementors section should look like this:

impl<'a, Sized? T> Deref<T> for &'a T
impl<'a, Sized? T> Deref<T> for &'a mut T
// ...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions