Skip to content

rustdoc examples in std have an explicit extern crate std when loaded in playpen #14999

Closed
@huonw

Description

@huonw

(Tiny papercut)

e.g. the first example in std::io is

use std::io;

for line in io::stdin().lines() {
    print!("{}", line.unwrap());
}

but the data sent to playpen has a pointless extern crate std;:

extern crate std;
fn main() {
    use std::io;

    for line in io::stdin().lines() {
        print!("{}", line.unwrap());
    }
}

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