fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
303 B15 linesraw
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}