New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rustdoc not showing return type but showing return type lifetimes #52376

Closed
bjorn3 opened this Issue Jul 14, 2018 · 2 comments

Comments

Projects
None yet
5 participants
@FanShupei

This comment has been minimized.

Copy link

FanShupei commented Jul 14, 2018

It seems the nightly rustdoc cannot handle impl Trait well. It works in argument position, not in return position.

I tried with a minimal examle. Create a new lib project, and write following in lib.rs, then cargo doc.

pub fn f(x: impl Copy) -> impl Copy {
    1
}

The output is weird. The return type vanishes.

pub fn f(x: impl Copy) -> 

rustdoc vesion: rustdoc 1.29.0-nightly (254f879 2018-07-13)
toolchain: nightly-x86_64-unknown-linux-gnu

@GuillaumeGomez

This comment has been minimized.

Copy link
Member

GuillaumeGomez commented Sep 6, 2018

Fixed in #53541.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment