mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-01 03:03:40 +00:00
16 lines
230 B
Rust
16 lines
230 B
Rust
mod a {
|
|
struct A;
|
|
|
|
impl Default for A {
|
|
pub fn default() -> A { //~ ERROR unnecessary visibility qualifier
|
|
A
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
fn main() {
|
|
a::A::default();
|
|
//~^ ERROR struct `A` is private
|
|
}
|