Skip to content

Rustdoc doesn't render all impl Trait details #49373

Closed
@Nemo157

Description

@Nemo157

Given a function definition

pub fn timeout<'a>(&'a mut self, duration: Duration) -> impl Future<Item=(), Error=!> + 'a

then this is currently (rustc 1.26.0-nightly (482a913fb 2018-03-25)) rendered as

impl-trait-doc

There are two very important bits of information missing from this:

  • The associated types of the Future trait
  • The lifetime bound on the returned type

Metadata

Metadata

Assignees

Labels

T-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions