Host OS: Linux Mint 15 x86_64
rustc version: rustc 0.10-pre (6f1c06d 2014-04-03 03:42:02 -0700)
Test case:
use A::B;
pub mod A {
pub trait B {
fn new() -> Self;
}
pub struct C;
impl B for C {
fn new() -> C { C }
}
}
pub fn test(param: ~A::B) {}
fn main() {
test(A::C = B::new());
}