2015-10-27 18:29:42 -04:00
|
|
|
mod a {
|
|
|
|
struct A;
|
|
|
|
|
|
|
|
impl Default for A {
|
2023-04-03 22:28:55 -05:00
|
|
|
pub fn default() -> A { //~ ERROR visibility qualifiers are not permitted here
|
2016-10-26 02:28:20 +03:00
|
|
|
A
|
2015-10-27 18:29:42 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
a::A::default();
|
2016-02-22 22:33:38 +00:00
|
|
|
//~^ ERROR struct `A` is private
|
2015-10-27 18:29:42 -04:00
|
|
|
}
|