]> git.lizzy.rs Git - rust.git/blob - tests/ui/privacy/export-tag-variant.rs
Rollup merge of #106664 - chenyukang:yukang/fix-106597-remove-lseek, r=cuviper
[rust.git] / tests / ui / privacy / export-tag-variant.rs
1 mod foo {
2     pub fn x() { }
3
4     enum Y { Y1 }
5 }
6
7 fn main() { let z = foo::Y::Y1; } //~ ERROR: enum `Y` is private