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

bjorn3 opened this Issue Jul 14, 2018 · 2 comments


None yet
5 participants

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, then cargo doc.

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

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


This comment has been minimized.

Copy link

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