]> git.lizzy.rs Git - rust.git/blob - src/test/ui/privacy/private-struct-field-ctor.rs
Auto merge of #75936 - sdroege:chunks-exact-construction-bounds-check, r=nagisa
[rust.git] / src / test / ui / privacy / private-struct-field-ctor.rs
1 mod a {
2     pub struct Foo {
3         x: isize
4     }
5 }
6
7 fn main() {
8     let s = a::Foo { x: 1 };    //~ ERROR field `x` of struct `a::Foo` is private
9 }