Sign in
fuchsia
/
third_party
/
rust
/
a10a02bf5fd00e4b34f1856af17d058dd5ec06f0
/
.
/
src
/
test
/
ui
/
issues
/
issue-15896.rs
blob: d3153b516e64de9f15ad88230402f43b0d96fc15 [
file
] [
log
] [
blame
]
// Regression test for #15896. It used to ICE rustc.
fn
main
()
{
enum
R
{
REB
(())
}
struct
Tau
{
t
:
usize
}
enum
E
{
B
(
R
,
Tau
)
}
let
e
=
E
::
B
(
R
::
REB
(()),
Tau
{
t
:
3
});
let
u
=
match
e
{
E
::
B
(
Tau
{
t
:
x
},
//~^ ERROR mismatched types
_
)
=>
x
,
};
}