Skip to content

Order of extern crate/pub mod matters suddenly #34212

Closed
@shahn

Description

@shahn

I have code that uses this (works on beta and stable):

pub mod module1;
#[macro_use]
extern crate lazy_static;

On nightly, this fails with an error about lazy_static not being found inside module1. When I switch around the order stuff starts working again. Seems like a regression?

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