Skip to content

Code example in std::net::lookup_host is not working #24332

Closed
@achanda

Description

@achanda

Th example here: https://doc.rust-lang.org/std/net/fn.lookup_host.html shows

<anon>:2:1: 2:18 error: an external crate named `std` has already been imported into this module [E0259]
<anon>:2 extern crate std;
         ^~~~~~~~~~~~~~~~~
error: aborting due to previous error
playpen: application terminated with error code 101

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions