]> git.lizzy.rs Git - rust.git/blob - src/test/ui/privacy/private-struct-field-ctor.rs
Merge commit '3e7c6dec244539970b593824334876f8b6ed0b18' into clippyup
[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 `Foo` is private
9 }