Closed
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)