Sign in
rust
/
rust
/
refs/heads/main
/
.
/
tests
/
ui
/
structs
/
struct-variant-field-visibility.rs
blob: 40acea956aeaba5bf71c6903b67da5b1b372fdfd [
file
] [
edit
]
//@ check-pass
#![
allow
(
dead_code
)]
mod
foo
{
pub
enum
Foo
{
Bar
{
a
:
isize
}
}
}
fn
f
(
f
:
foo
::
Foo
)
{
match
f
{
foo
::
Foo
::
Bar
{
a
:
_a
}
=>
{}
}
}
pub
fn
main
()
{}