1 error[E0603]: enum `Y` is private
2 --> $DIR/export-tag-variant.rs:7:26
4 LL | fn main() { let z = foo::Y::Y1; } //~ ERROR: enum `Y` is private
7 error: aborting due to previous error
9 For more information about this error, try `rustc --explain E0603`.