Sign in
android
/
toolchain
/
rustc
/
ff3f07ae99a30006dd85b9d73084edd9355c9db6
/
.
/
src
/
test
/
ui
/
structs
/
struct-variant-privacy.rs
blob: 8355879e7d94d9d7f1300cf154806f4fd36bd461 [
file
] [
log
] [
blame
]
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
()
{}