blob: 729ce11f4427385bedec557d5b180639137c26bd [file] [log] [blame] [edit]
//@ aux-build:struct_variant_privacy.rs
extern crate struct_variant_privacy;
fn f(b: struct_variant_privacy::Bar) {
//~^ ERROR enum `Bar` is private
match b {
struct_variant_privacy::Bar::Baz { a: _a } => {} //~ ERROR enum `Bar` is private
}
}
fn main() {}