- 
                Notifications
    You must be signed in to change notification settings 
- Fork 13.9k
Closed
Labels
A-resolveArea: Name/path resolution done by `rustc_resolve` specificallyArea: Name/path resolution done by `rustc_resolve` specifically
Description
a.rs:
#![crate_type = "dylib"]
pub trait Foo {}
b.rs:
mod c;
fn main() {}
c.rs:
extern crate a;
use a::Foo;
Ran rustc a.rs, then rustc b.rs -L..  The result is a confusing error:
c.rs:2:9: 2:10 error: unresolved import. maybe a missing `extern crate a`?
c.rs:2     use a::Foo;
rustc 0.11-pre-nightly (d35804e 2014-04-18 00:01:22 -0700)
Metadata
Metadata
Assignees
Labels
A-resolveArea: Name/path resolution done by `rustc_resolve` specificallyArea: Name/path resolution done by `rustc_resolve` specifically