Skip to content

Rustdoc should show output of examples #12496

Closed
@huonw

Description

@huonw

e.g. std::path has an example that println!'s 3 things, but the user has to copy-paste and then wrap it in fn main() {} to actually see them.

Metadata

Metadata

Assignees

No one assigned

    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