2013-03-18 19:20:45 -05:00
|
|
|
mod a {
|
|
|
|
pub struct S;
|
|
|
|
impl S {
|
2013-03-21 21:07:54 -05:00
|
|
|
fn new() -> S { S }
|
2013-03-18 19:20:45 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {
|
2013-08-08 13:38:10 -05:00
|
|
|
let _ = a::S::new(); //~ ERROR method `new` is private
|
2013-03-18 19:20:45 -05:00
|
|
|
}
|