Skip to content

rustdoc: Fn trait sugar output types are broken for inlined signatures #21801

Closed
@tomjakubowski

Description

@tomjakubowski

For example, see: http://doc.rust-lang.org/std/collections/struct.Bitv.html#method.from_fn

fn from_fn<F>(len: usize, f: F) -> Bitv 
where F: FnMut(usize), <F as FnMut(usize)>::Output == bool

Should look like:

fn from_fn<F>(len: usize, f: F) -> Bitv 
where F: FnMut(usize) -> bool

This is because of the change to use associated types for the output.

Metadata

Metadata

Assignees

Labels

E-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.P-mediumMedium priorityT-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions