Closed
Description
This was working previously before rustc 0.13.0-nightly (3d2cf6063 2014-10-22 00:22:04 +0000)
.
If this is an intended change, we should probably give the error where the re-export is defined and not on use of the trait.
use foo::Bar;
mod foo {
pub use self::bar::Bar;
mod bar {
pub trait Bar {
fn call(&self) -> bool;
}
}
}
impl foo::Bar for uint {
fn call(&self) -> bool {
true
}
}
fn main() {
println!("{}", 0u.call())
//^~ ERROR source trait is inaccessible
}