Sign in
fuchsia
/
third_party
/
rust
/
08351004125c4d49aa757f2c3ec2340f7469ea91
/
.
/
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
()
{}