2014-11-08 16:54:33 -08:00
|
|
|
// aux-build:struct_variant_privacy.rs
|
|
|
|
extern crate struct_variant_privacy;
|
|
|
|
|
2021-03-05 13:54:35 +08:00
|
|
|
fn f(b: struct_variant_privacy::Bar) {
|
|
|
|
//~^ ERROR enum `Bar` is private
|
2014-11-08 16:54:33 -08:00
|
|
|
match b {
|
2021-03-12 01:49:27 +08:00
|
|
|
struct_variant_privacy::Bar::Baz { a: _a } => {} //~ ERROR enum `Bar` is private
|
2014-04-05 19:28:01 +02:00
|
|
|
}
|
|
|
|
}
|
2014-11-08 16:54:33 -08:00
|
|
|
|
|
|
|
fn main() {}
|