Sign in
fuchsia
/
third_party
/
rust
/
7de9402b77ded0d8ec9e1c554521b2121449ef2b
/
.
/
src
/
test
/
ui
/
pattern
/
pattern-tyvar-2.rs
blob: 9fba9cb876a258d3717de1bd8d0a23bfcdaa9ce4 [
file
] [
log
] [
blame
]
enum
Bar
{
T1
((),
Option
<
Vec
<
isize
>>),
T2
,
}
fn
foo
(
t
:
Bar
)
->
isize
{
match
t
{
Bar
::
T1
(
_
,
Some
(
x
))
=>
{
return
x
*
3
;
}
_
=>
{
panic
!();
}
}
}
//~^ ERROR binary operation `*` cannot be applied to
fn
main
()
{
}