mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-25 08:13:41 +00:00
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() {}
|