Sign in
android
/
toolchain
/
rustc
/
refs/heads/main
/
.
/
tests
/
ui
/
pattern
/
pattern-tyvar.rs
blob: e2cbf05193d46fbd36034bca9ecbd3c91f47b1dd [
file
] [
log
] [
blame
] [
edit
]
enum
Bar
{
T1
((),
Option
<
Vec
<
isize
>>),
T2
}
fn
foo
(
t
:
Bar
)
{
match
t
{
Bar
::
T1
(
_
,
Some
::<
isize
>(
x
))
=>
{
//~ ERROR mismatched types
println
!(
"{}"
,
x
);
}
_
=>
{
panic
!();
}
}
}
fn
main
()
{
}