mirror of
https://github.com/rust-lang/rust.git
synced 2024-10-31 22:41:50 +00:00
16 lines
242 B
Rust
16 lines
242 B
Rust
mod a {
|
|
struct A;
|
|
|
|
impl Default for A {
|
|
pub fn default() -> A { //~ ERROR visibility qualifiers are not permitted here
|
|
A
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
fn main() {
|
|
a::A::default();
|
|
//~^ ERROR struct `A` is private
|
|
}
|