Closed
Description
use B::*;
pub struct S;
mod B
{
impl super::S
{
pub fn new() -> super::S
{
super::S
}
}
}
fn main()
{
let s = S::new();
}
Error:
test.rs:17:9: 17:15 error: unresolved name
test.rs:17 let s = S::new();
^~~~~~
test.rs:17:9: 17:15 error: use of undeclared module `S`
test.rs:17 let s = S::new();
^~~~~~
test.rs:17:9: 17:15 error: unresolved name `S::new`.
test.rs:17 let s = S::new();
^~~~~~
error: aborting due to 3 previous errors
rustc --version
rustc 0.8 (76e8f08 2013-09-27 11:11:06 -0700)
host: x86_64-unknown-linux-gnu
Metadata
Metadata
Assignees
Labels
No labels