mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-04 04:39:16 +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() {}
|