Sign in
fuchsia
/
third_party
/
rust
/
11a0b968c287c81680387ffcf112328d52d7e815
/
.
/
src
/
test
/
ui
/
type-alias-enum-variants
/
incorrect-variant-form-through-Self-issue-58006.rs
blob: c1e56fc4caa9f9a5e3154866c9363e02132ff627 [
file
] [
log
] [
blame
]
pub
enum
Enum
{
A
(
usize
),
}
impl
Enum
{
fn
foo
(&
self
)
->
()
{
match
self
{
Self
::
A
=>
(),
//~^ ERROR expected unit struct/variant or constant, found tuple variant
}
}
}
fn
main
()
{}