summaryrefslogtreecommitdiffstats
path: root/tests/ui/privacy/private-struct-field-ctor.stderr
blob: 9dc9db0eaca415df99cea6bec6fe25f03146b6ba (plain)
1
2
3
4
5
6
7
8
9
error[E0451]: field `x` of struct `Foo` is private
  --> $DIR/private-struct-field-ctor.rs:8:22
   |
LL |     let s = a::Foo { x: 1 };
   |                      ^^^^ private field

error: aborting due to previous error

For more information about this error, try `rustc --explain E0451`.