--> $DIR/E0451.rs:14:21
|
LL | let bar::Foo{a, b} = foo;
- | ^ field `b` is private
+ | ^ private field
error[E0451]: field `b` of struct `bar::Foo` is private
--> $DIR/E0451.rs:18:29
|
LL | let f = bar::Foo{ a: 0, b: 0 };
- | ^^^^ field `b` is private
+ | ^^^^ private field
error: aborting due to 2 previous errors