Sign in
android
/
toolchain
/
rustc
/
bc2a45aebf2f3f158c878db02ee23d906d1269df
/
.
/
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
()
{}