2015-10-27 17:29:42 -05:00
|
|
|
mod a {
|
|
|
|
struct A;
|
|
|
|
|
|
|
|
impl Default for A {
|
2016-05-22 10:07:28 -05:00
|
|
|
pub fn default() -> A { //~ ERROR unnecessary visibility qualifier
|
2016-10-25 18:28:20 -05:00
|
|
|
A
|
2015-10-27 17:29:42 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
a::A::default();
|
2016-02-22 16:33:38 -06:00
|
|
|
//~^ ERROR struct `A` is private
|
2015-10-27 17:29:42 -05:00
|
|
|
}
|