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