1 error[E0603]: enum `y` is private
2 --> $DIR/export-tag-variant.rs:17:21
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`.