Skip to content
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

Document does not show function return type which use keyword impl #6173

Closed
ZhouHansen opened this issue Oct 13, 2018 · 3 comments
Closed

Document does not show function return type which use keyword impl #6173

ZhouHansen opened this issue Oct 13, 2018 · 3 comments

Comments

@ZhouHansen
Copy link

My function is:

fn batcher() -> impl Fn(usize) -> () {
// ...
}

I run cargo doc --open, the document of this function lacks of return type:

pub fn batcher() -> 

cargo version: cargo 1.29.0-nightly

@alexcrichton
Copy link
Member

Thanks for the report! I think that this may be a bug with rustdoc rather than Cargo, so mind opening an issue against https://github.com/rust-lang/rust where the source of rustdoc lives? Thanks!

@ehuss
Copy link
Contributor

ehuss commented Oct 13, 2018

This was fixed in rust-lang/rust#53541 and is available on beta (1.30).

@alexcrichton
Copy link
Member

Ah ok great! In that case I'll go ahead and close.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants