Sign in
fuchsia
/
third_party
/
rust
/
9d09331e00b02f81c714b0c41ce3a38380dd36a2
/
.
/
src
/
test
/
ui
/
type-alias-enum-variants
/
issue-57866.rs
blob: 5e105b20a89264f0c9614d261465315085aee152 [
file
] [
log
] [
blame
]
// check-pass
enum
Outer
<
T
>
{
A
(
T
)
}
enum
Inner
{
A
(
i32
)
}
type
OuterAlias
=
Outer
<
Inner
>;
fn
ice
(
x
:
OuterAlias
)
{
// Fine
match
x
{
OuterAlias
::
A
(
Inner
::
A
(
_
))
=>
(),
}
// Not fine
match
x
{
OuterAlias
::
A
(
Inner
::
A
(
y
))
=>
(),
}
}
fn
main
()
{}