1 error[E0603]: enum `Bar` is private
2 --> $DIR/struct-variant-privacy.rs:7:14
4 LL | fn f(b: foo::Bar) {
7 note: the enum `Bar` is defined here
8 --> $DIR/struct-variant-privacy.rs:2:5
13 error[E0603]: enum `Bar` is private
14 --> $DIR/struct-variant-privacy.rs:10:14
16 LL | foo::Bar::Baz { a: _a } => {}
19 note: the enum `Bar` is defined here
20 --> $DIR/struct-variant-privacy.rs:2:5
25 error: aborting due to 2 previous errors
27 For more information about this error, try `rustc --explain E0603`.