fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1// run-rustfix 2mod a { 3 pub struct A(pub String); 4} 5 6mod b { 7 use crate::a::A; 8 pub fn x() { 9 A("".into()); //~ ERROR cannot initialize a tuple struct which contains private fields 10 } 11} 12fn main() { 13 a::A("a".into()); //~ ERROR tuple struct constructor `A` is private 14 b::x(); 15}