2013-03-18 17:20:45 -07:00
|
|
|
mod a {
|
|
|
|
|
pub struct S;
|
|
|
|
|
impl S {
|
2013-03-21 19:07:54 -07:00
|
|
|
fn new() -> S { S }
|
2013-03-18 17:20:45 -07:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
fn main() {
|
2020-03-04 21:03:15 -06:00
|
|
|
let _ = a::S::new(); //~ ERROR associated function `new` is private
|
2013-03-18 17:20:45 -07:00
|
|
|
}
|