1
Fork 0
rust/src/test/ui/structs/struct-variant-privacy-xc.rs

13 lines
362 B
Rust
Raw Normal View History

// 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
match b {
2021-03-05 13:54:35 +08:00
struct_variant_privacy::Bar::Baz { a: _a } => {} //~ ERROR cannot match on
//~^ ERROR enum `Bar` is private
}
}
fn main() {}