2018-01-12 15:41:45 -06:00
|
|
|
// ignore-tidy-linelength
|
|
|
|
|
2017-01-20 09:53:49 -06:00
|
|
|
#![allow(unused)]
|
|
|
|
|
|
|
|
use m::S;
|
|
|
|
|
|
|
|
mod m {
|
|
|
|
pub struct S(u8);
|
|
|
|
|
|
|
|
mod n {
|
|
|
|
use S;
|
|
|
|
fn f() {
|
|
|
|
S(10);
|
2018-01-12 15:41:45 -06:00
|
|
|
//~^ ERROR private struct constructors are not usable through re-exports in outer modules
|
2017-01-20 09:53:49 -06:00
|
|
|
//~| WARN this was previously accepted
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {}
|