Sign in
android
/
toolchain
/
rustc
/
refs/heads/main
/
.
/
tests
/
ui
/
pattern
/
pattern-tyvar-2.rs
blob: 7647c766ef914e64ba93a5fd6212362002440f43 [
file
] [
log
] [
blame
] [
edit
]
enum
Bar
{
T1
((),
Option
<
Vec
<
isize
>>),
T2
,
}
fn
foo
(
t
:
Bar
)
->
isize
{
match
t
{
Bar
::
T1
(
_
,
Some
(
x
))
=>
{
return
x
*
3
;
}
_
=>
{
panic
!();
}
}
}
//~^ ERROR cannot multiply `Vec<isize>` by `{integer}`
fn
main
()
{
}