blob: 63fdb0bce6a9056ab8e474402ad4253236e3f746 [file] [log] [blame]
//@ run-rustfix
pub mod a {
pub struct A(pub(self)String);
}
mod b {
use crate::a::A;
pub fn x() {
A("".into()); //~ ERROR cannot initialize a tuple struct which contains private fields
}
}
fn main() {
a::A("a".into()); //~ ERROR tuple struct constructor `A` is private
b::x();
}