12 lines
162 B
Rust
12 lines
162 B
Rust
|
mod a {
|
||
|
pub struct S;
|
||
|
impl S {
|
||
|
static fn new() -> S { S }
|
||
|
}
|
||
|
}
|
||
|
|
||
|
fn main() {
|
||
|
let _ = a::S::new(); //~ ERROR function `new` is private
|
||
|
}
|
||
|
|