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