15 lines
223 B
Rust
15 lines
223 B
Rust
mod foo {
|
|
enum Bar {
|
|
Baz { a: isize },
|
|
}
|
|
}
|
|
|
|
fn f(b: foo::Bar) {
|
|
//~^ ERROR enum `Bar` is private
|
|
match b {
|
|
foo::Bar::Baz { a: _a } => {} //~ ERROR enum `Bar` is private
|
|
}
|
|
}
|
|
|
|
fn main() {}
|