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