2018-12-16 22:21:47 -05:00
|
|
|
enum Bar { T1((), Option<Vec<isize>>), T2, }
|
2011-05-14 19:03:08 -07:00
|
|
|
|
2018-12-16 22:21:47 -05:00
|
|
|
fn foo(t: Bar) -> isize { match t { Bar::T1(_, Some(x)) => { return x * 3; } _ => { panic!(); } } }
|
2020-10-17 19:59:51 -07:00
|
|
|
//~^ ERROR cannot multiply `Vec<isize>` by `{integer}`
|
2011-05-14 19:03:08 -07:00
|
|
|
|
2011-08-10 09:27:22 -07:00
|
|
|
fn main() { }
|