Sign in
◑
Theme
rust
/
rust
/
2a61ba8577ed3c3e1cfeb433d06cf5464ff2fdf3
/
.
/
tests
/
ui
/
structs
/
struct-variant-privacy.rs
blob: fcdf9a22baf4b5cd9f92419bde0bfcacf8844050 [
file
]
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
()
{}