]> git.lizzy.rs Git - rust.git/blob - tests/ui/structs/struct-variant-privacy-xc.rs
internally change regions to be covariant
[rust.git] / tests / ui / structs / struct-variant-privacy-xc.rs
1 // aux-build:struct_variant_privacy.rs
2 extern crate struct_variant_privacy;
3
4 fn f(b: struct_variant_privacy::Bar) {
5     //~^ ERROR enum `Bar` is private
6     match b {
7         struct_variant_privacy::Bar::Baz { a: _a } => {} //~ ERROR enum `Bar` is private
8     }
9 }
10
11 fn main() {}