Sign in
fuchsia
/
third_party
/
rust
/
346aec9b02f3c74f3fce97fd6bda24709d220e49
/
.
/
src
/
test
/
ui
/
pattern
/
pattern-tyvar-2.rs
blob: 4c6d515b86af348166d1aed9bf4538cf3c6bcb61 [
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 cannot multiply `{integer}` to `std::vec::Vec<isize>`
fn
main
()
{
}