blob: 3c5ac603933c883613f7d6ed25a5acd4cd81ff89 [file] [log] [blame] [edit]
mod m {
pub struct S(crate::P);
}
use m::S;
struct P;
impl P {
fn foo(self) {
S(self);
//~^ ERROR cannot initialize a tuple struct which contains private fields [E0423]
}
}
fn main() {}