a.rs:
#![crate_type = "dylib"]
pub trait Foo {}
b.rs:
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)
a.rs:
b.rs:
c.rs:
Ran
rustc a.rs, thenrustc b.rs -L.. The result is a confusing error:rustc 0.11-pre-nightly (d35804e 2014-04-18 00:01:22 -0700)