Skip to content

using extern-prelude does not allow use of std/core #50605

Closed
@nikomatsakis

Description

@nikomatsakis

Example (play):

#![feature(extern_prelude)]

mod foo {
    pub fn test() {
        let x = std::cmp::min(2, 3);
        assert_eq!(x, 2);
    }
}

fn main() {
    foo::test();
}

I would expect this to work. (I presume it doesn't because cargo doesn't pass --extern std.)

cc @petrochenkov @Manishearth

Metadata

Metadata

Assignees

No one assigned

    Labels

    T-compilerRelevant to the compiler 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